1600 |
How do I set a computated cell individually
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Number"); exg2antt1.Columns().Add("Format"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("1.23"); com_Items.CellValueFormat(h,COMVariant::createFromInt(1),2/*exComputedField*/); com_Items.CellValue(h,COMVariant::createFromInt(1),"2 * %0 + ` (2 * Number)`"); h = com_Items.AddItem("1.23"); com_Items.CellValueFormat(h,COMVariant::createFromInt(1),2/*exComputedField*/); com_Items.CellValue(h,COMVariant::createFromInt(1),"3 * %0 + ` (3 * Number)`"); h = com_Items.AddItem("1.23"); com_Items.CellValueFormat(h,COMVariant::createFromInt(1),2/*exComputedField*/); com_Items.CellValue(h,COMVariant::createFromInt(1),"currency(%0) + ` ( Currency(Number) )`"); exg2antt1.EndUpdate(); } |
1599 |
How can I hide a specific hour
public void init() { COM com_Chart,com_InsideZoomFormat,com_InsideZooms,com_InsideZooms1,com_Items,com_Level; anytype var_Chart,var_InsideZoomFormat,var_InsideZooms,var_InsideZooms1,var_Items,var_Level; ; super(); exg2antt1.BeginUpdate(); exg2antt1.DrawGridLines(-1/*exAllLines*/); exg2antt1.Columns().Add("Default"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.AllowInsideZoom(true); com_Chart.FirstWeekDay(1/*exMonday*/); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("3/31/2013",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,52); com_Chart.LevelCount(2); com_Chart.UnitScale(65536/*exHour*/); var_Level = COM::createFromObject(com_Chart.Level(1)); com_Level = var_Level; com_Level.Label("<font ;6><%h%></font>"); com_Chart.UnitWidth(14); com_Chart.DrawGridLines(-1/*exAllLines*/); com_Chart.AllowInsideZoom(true); var_InsideZoomFormat = COM::createFromObject(com_Chart.DefaultInsideZoomFormat()); com_InsideZoomFormat = var_InsideZoomFormat; com_InsideZoomFormat.InsideUnit(1048576/*exMinute*/); com_Chart.AllowResizeInsideZoom(false); com_Chart.InsideZoomOnDblClick(false); var_InsideZooms = com_Chart.InsideZooms(); com_InsideZooms = var_InsideZooms; com_InsideZooms.SplitBaseLevel(false); com_InsideZooms.DefaultWidth(0); var_InsideZooms1 = com_Chart.InsideZooms(); com_InsideZooms1 = var_InsideZooms1; com_InsideZooms1.Add(COMVariant::createFromUtcDateTime(str2Datetime("3/31/2013 23:00:00",213))); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Item"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,52); } */ |
1598 |
Is it possible to define the keys of the drop down values to be strings rather than numeric values
// Change event - Occurs when the user changes the cell's content. void onEvent_Change(int _Item,int _ColIndex,COMVariant /*variant*/ _NewValue) { ; print( "NewValue is" ); print( _NewValue ); } public void init() { COM com_Editor,com_Editor1,com_Items; anytype var_Editor,var_Editor1,var_Items; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("DropDownList-String")).Editor(); com_Editor = var_Editor; com_Editor.EditType(3/*DropDownListType*/); com_Editor.AddItem(1,"NYC|New York City"); com_Editor.AddItem(2,"CJN|Cluj Napoca"); var_Editor1 = COM::createFromVariant(exg2antt1.Columns().Add("DropDownList-Numeric")).Editor(); com_Editor1 = var_Editor1; com_Editor1.EditType(3/*DropDownListType*/); com_Editor1.AddItem(1,"New York City"); com_Editor1.AddItem(2,"Cluj Napoca"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem("NYC"),COMVariant::createFromInt(1),COMVariant::createFromInt(2)); } |
1597 |
I have an edit field, when going to edit mode, the rightmost part is shown. Is it possible to show the left part instead
public void init() { COM com_Column,com_Editor,com_Items; anytype var_Column,var_Editor,var_Items; ; super(); exg2antt1.BeginUpdate(); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Edit")); com_Column = var_Column; com_Column.Width(64); com_Column.AllowSizing(false); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.EditType(8/*MaskType*/); com_Editor.Mask(";;;rich"); exg2antt1.Columns().Add("Empty"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("This is a bit ot long text"); com_Items.AddItem(""); exg2antt1.EndUpdate(); } |
1596 |
I have a drop down field, the control shows the rightmost part of the selected caption. Is it possible to show the left part
public void init() { COM com_Column,com_Column1,com_Editor,com_Editor1,com_Editor2,com_Editor3,com_Items; anytype var_Column,var_Column1,var_Editor,var_Editor1,var_Editor2,var_Editor3,var_Items; int h; ; super(); exg2antt1.BeginUpdate(); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("DropDown")); com_Column = var_Column; com_Column.Width(64); com_Column.AllowSizing(false); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.DropDownAlignment(32); com_Editor.EditType(2/*DropDownType*/); com_Editor.AddItem(1,"First item. This is a bit ot long text"); com_Editor.AddItem(2,"Second item. This is a bit ot long text"); com_Editor.AddItem(3,"Third item. This is a bit ot long text"); com_Editor.Mask(";;;rich"); var_Column1 = COM::createFromVariant(exg2antt1.Columns().Add("PickEdit")); com_Column1 = var_Column1; com_Column1.Width(64); com_Column1.AllowSizing(false); var_Editor1 = com_Column1.Editor(); com_Editor1 = var_Editor1; com_Editor1.DropDownAlignment(32); com_Editor1.EditType(14/*PickEditType*/); com_Editor1.AddItem(1,"First item. This is a bit ot long text"); com_Editor1.AddItem(2,"Second item. This is a bit ot long text"); com_Editor1.AddItem(3,"Third item. This is a bit ot long text"); com_Editor1.Mask(";;;rich"); exg2antt1.Columns().Add("Empty"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem("First item. This is a bit ot long text"),COMVariant::createFromInt(1),"Second item. This is a bit ot long text"); h = com_Items.AddItem("First item. This is a bit ot long text"); var_Editor2 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor2 = var_Editor2; com_Editor2.DropDownAlignment(32); com_Editor2.EditType(2/*DropDownType*/); com_Editor2.AddItem(1,"First item. This is a bit ot long text"); com_Editor2.AddItem(2,"Second item. This is a bit ot long text"); com_Editor2.AddItem(3,"Third item. This is a bit ot long text"); com_Items.CellValue(h,COMVariant::createFromInt(1),"Second item. This is a bit ot long text"); var_Editor3 = com_Items.CellEditor(h,COMVariant::createFromInt(1)); com_Editor3 = var_Editor3; com_Editor3.DropDownAlignment(32); com_Editor3.EditType(14/*PickEditType*/); com_Editor3.AddItem(1,"First item. This is a bit ot long text"); com_Editor3.AddItem(2,"Second item. This is a bit ot long text"); com_Editor3.AddItem(3,"Third item. This is a bit ot long text"); exg2antt1.EndUpdate(); } |
1595 |
Is there a property for the back color of the dropdown field
public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.BeginUpdate(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.Option(55/*exDropDownBackColor*/,COMVariant::createFromInt(15790320)); com_Editor.Option(56/*exDropDownForeColor*/,COMVariant::createFromInt(65793)); exg2antt1.Items().AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); exg2antt1.EndUpdate(); } |
1594 |
Is it possible to change a back color of the field/cell when it takes a focus
// EditClose event - Occurs when the edit operation ends. void onEvent_EditClose() { COM com_Items; anytype var_Items; ; var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.ClearCellBackColor(com_Items.FocusItem(),exg2antt1.FocusColumnIndex()); } // EditOpen event - Occurs when the edit operation starts. void onEvent_EditOpen() { COM com_Items,com_Items1; anytype var_Items,var_Items1; ; var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellBackColor(com_Items.FocusItem(),exg2antt1.FocusColumnIndex(),WinApi::RGB2int(255,0,0)); var_Items1 = exg2antt1.Items(); com_Items1 = var_Items1; com_Items1.CellValue(com_Items1.FocusItem(),exg2antt1.FocusColumnIndex(),exg2antt1.Items().CellValue(exg2antt1.Items().FocusItem(),exg2antt1.FocusColumnIndex())); } public void init() { COM com_Editor,com_Items,com_Items1; anytype var_Editor,var_Items,var_Items1; ; super(); exg2antt1.FullRowSelect(0/*exColumnSel*/); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("C1"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("C2"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem("v1"),COMVariant::createFromInt(1),"v2"); com_Items.CellValue(com_Items.AddItem("v3"),COMVariant::createFromInt(1),"v4"); } |
1593 |
How can I display the current date mask, but still allow empty values
public void init() { COM com_Editor,com_Items; anytype var_Editor,var_Items; str var_s; ; super(); exg2antt1.BeginUpdate(); exg2antt1.CauseValidateValue(true); exg2antt1.FullRowSelect(0/*exColumnSel*/); exg2antt1.DrawGridLines(-2/*exRowLines*/); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Date")).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); var_s = "!99/99/9999;1;;empty=1,validateas=1,invalid=Invalid date\\, for the input mask <br><b>'<%mask%>'</b>!,warning=Invalid character!,"; var_s = var_s + "select=4,overtype"; com_Editor.Mask(var_s); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(); com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Items.AddItem(); exg2antt1.EndUpdate(); } |
1592 |
How can I align the days in a DateType editor
public void init() { COM com_Editor,com_Editor1,com_Editor2,com_Editor3,com_Editor4,com_Editor5,com_Items; anytype var_Editor,var_Editor1,var_Editor2,var_Editor3,var_Editor4,var_Editor5,var_Items; ; super(); exg2antt1.Columns().Add("DropDown"); var_Items = exg2antt1.Items(); com_Items = var_Items; var_Editor = com_Items.CellEditor(com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))),COMVariant::createFromInt(0)); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.DropDownAlignment(2/*RightAlignment*/); var_Editor1 = com_Items.CellEditor(com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))),COMVariant::createFromInt(0)); com_Editor1 = var_Editor1; com_Editor1.EditType(7/*DateType*/); com_Editor1.DropDownAlignment(1/*CenterAlignment*/); var_Editor2 = com_Items.CellEditor(com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))),COMVariant::createFromInt(0)); com_Editor2 = var_Editor2; com_Editor2.EditType(7/*DateType*/); com_Editor2.DropDownAlignment(0/*LeftAlignment*/); var_Editor3 = com_Items.CellEditor(com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))),COMVariant::createFromInt(0)); com_Editor3 = var_Editor3; com_Editor3.EditType(7/*DateType*/); com_Editor3.DropDownAlignment(32); var_Editor4 = com_Items.CellEditor(com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))),COMVariant::createFromInt(0)); com_Editor4 = var_Editor4; com_Editor4.EditType(7/*DateType*/); com_Editor4.DropDownAlignment(33/*0x21 | CenterAlignment*/); var_Editor5 = com_Items.CellEditor(com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))),COMVariant::createFromInt(0)); com_Editor5 = var_Editor5; com_Editor5.EditType(7/*DateType*/); com_Editor5.DropDownAlignment(34/*0x22 | RightAlignment*/); } |
1591 |
How can I align the drop down portion rather the inside captions
public void init() { COM com_Editor,com_Editor1,com_Items; anytype var_Editor,var_Editor1,var_Items; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("DropDown"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; var_Editor = com_Items.CellEditor(com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))),COMVariant::createFromInt(0)); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.DropDownAlignment(32); var_Editor1 = com_Items.CellEditor(com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))),COMVariant::createFromInt(0)); com_Editor1 = var_Editor1; com_Editor1.EditType(7/*DateType*/); com_Editor1.DropDownAlignment(16/*exHOutside*/); com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); } |
1590 |
Is it possible to show a message that the field is empty
public void init() { COM com_Column,com_Editor; anytype var_Column,var_Editor; ; super(); exg2antt1.DrawGridLines(-2/*exRowLines*/); exg2antt1.FullRowSelect(0/*exColumnSel*/); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Float")); com_Column = var_Column; var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.EditType(8/*MaskType*/); com_Editor.Mask(";;;float,digits=0,grouping=,invalid=empty,warning=invalid character"); exg2antt1.Items().AddItem(COMVariant::createFromInt(192278)); exg2antt1.Items().AddItem(COMVariant::createFromInt(1000)); } |
1589 |
How can I mask a date
public void init() { COM com_Editor,com_Editor1,com_Editor2,com_Editor3,com_Editor4,com_Editor5,com_Editor6,com_Editor7,com_Editor8,com_Items; anytype var_Editor,var_Editor1,var_Editor2,var_Editor3,var_Editor4,var_Editor5,var_Editor6,var_Editor7,var_Editor8,var_Items; int h; str var_s,var_s1,var_s2,var_s3,var_s4,var_s5,var_s6,var_s7,var_s8; ; super(); exg2antt1.BeginUpdate(); exg2antt1.CauseValidateValue(true); exg2antt1.FullRowSelect(0/*exColumnSel*/); exg2antt1.DrawGridLines(-2/*exRowLines*/); exg2antt1.Columns().Add("Date"); exg2antt1.Columns().Add("Mask"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Editor = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); var_s = "{1,12}/{1,31}/{1950,2050};1;;select=1,warning=Invalid character!,invalid=Invalid date\\, for the input mask <br><b>'<%mask%>'</b>"; var_s = var_s + "!,validateas=1"; com_Editor.Mask(var_s); com_Items.CellValue(h,COMVariant::createFromInt(1),COMVariant::createFromStr(com_Items.CellEditor(h,COMVariant::createFromInt(0)).Mask())); h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Editor1 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor1 = var_Editor1; com_Editor1.EditType(7/*DateType*/); var_s1 = "!99/99/9999;1;;empty,validateas=1,invalid=Invalid date\\, for the input mask <br><b>'<%mask%>'</b>!,warning=Invalid character!,se"; var_s1 = var_s1 + "lect=4,overtype"; com_Editor1.Mask(var_s1); com_Items.CellValue(h,COMVariant::createFromInt(1),COMVariant::createFromStr(com_Items.CellEditor(h,COMVariant::createFromInt(0)).Mask())); h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Editor2 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor2 = var_Editor2; com_Editor2.EditType(7/*DateType*/); var_s2 = "!99/99/9999;;;empty,validateas=1,invalid=Invalid date\\, for the input mask <br><b>'<%mask%>'</b>!,warning=Invalid character!,sel"; var_s2 = var_s2 + "ect=4,overtype"; com_Editor2.Mask(var_s2); com_Items.CellValue(h,COMVariant::createFromInt(1),COMVariant::createFromStr(com_Items.CellEditor(h,COMVariant::createFromInt(0)).Mask())); h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Editor3 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor3 = var_Editor3; com_Editor3.EditType(7/*DateType*/); var_s3 = "!99/99/9999;; ;select=4,overtype,empty,warning=Invalid character!,invalid=Invalid date\\, for the input mask <br><b>'<%mask%>'</b"; var_s3 = var_s3 + ">!,validateas=1"; com_Editor3.Mask(var_s3); com_Items.CellValue(h,COMVariant::createFromInt(1),COMVariant::createFromStr(com_Items.CellEditor(h,COMVariant::createFromInt(0)).Mask())); h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Editor4 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor4 = var_Editor4; com_Editor4.EditType(7/*DateType*/); var_s4 = "![0-9 ][0-9 ]/[0-9 ][0-9 ]/[0-9 ][0-9 ][0-9 ][0-9 ];1;;empty,validateas=1,invalid=Invalid date\\, for the input mask <br><b>'<%ma"; var_s4 = var_s4 + "sk%>'</b>!,warning=Invalid character!,select=4,leading= "; com_Editor4.Mask(var_s4); com_Items.CellValue(h,COMVariant::createFromInt(1),COMVariant::createFromStr(com_Items.CellEditor(h,COMVariant::createFromInt(0)).Mask())); h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Items.FormatCell(h,COMVariant::createFromInt(0),"len(value) ? shortdateF(value) : ``"); var_Editor5 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor5 = var_Editor5; com_Editor5.EditType(7/*DateType*/); var_s5 = "!99/99/9999;1;;empty,validateas=1,invalid=Invalid date\\, for the input mask <br><b>'<%mask%>'</b>!,warning=Invalid character!,se"; var_s5 = var_s5 + "lect=4,overtype,leading"; com_Editor5.Mask(var_s5); com_Items.CellValue(h,COMVariant::createFromInt(1),COMVariant::createFromStr(com_Items.CellEditor(h,COMVariant::createFromInt(0)).Mask())); h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Items.FormatCell(h,COMVariant::createFromInt(0),"len(value) ? shortdateF(value) : ``"); var_Editor6 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor6 = var_Editor6; com_Editor6.EditType(7/*DateType*/); var_s6 = "!00/00/0000;1;;empty,validateas=1,invalid=Invalid date\\, for the input mask <br><b>'<%mask%>'</b>!,warning=Invalid character!,se"; var_s6 = var_s6 + "lect=4,overtype,leading"; com_Editor6.Mask(var_s6); com_Items.CellValue(h,COMVariant::createFromInt(1),COMVariant::createFromStr(com_Items.CellEditor(h,COMVariant::createFromInt(0)).Mask())); h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Items.FormatCell(h,COMVariant::createFromInt(0),"len(value) ? shortdateF(value) : ``"); var_Editor7 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor7 = var_Editor7; com_Editor7.EditType(7/*DateType*/); var_s7 = "!00/00/0000;;0;empty,validateas=1,invalid=Invalid date\\, for the input mask <br><b>'<%mask%>'</b>!,warning=Invalid character!,se"; var_s7 = var_s7 + "lect=4,overtype"; com_Editor7.Mask(var_s7); com_Items.CellValue(h,COMVariant::createFromInt(1),COMVariant::createFromStr(com_Items.CellEditor(h,COMVariant::createFromInt(0)).Mask())); h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Items.FormatCell(h,COMVariant::createFromInt(0),"len(value) ? shortdateF(value) : ``"); var_Editor8 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor8 = var_Editor8; com_Editor8.EditType(7/*DateType*/); var_s8 = "!00/00/0000;;;empty,validateas=1,invalid=Invalid date\\, for the input mask <br><b>'<%mask%>'</b>!,warning=Invalid character!,sel"; var_s8 = var_s8 + "ect=1,overtype"; com_Editor8.Mask(var_s8); com_Items.CellValue(h,COMVariant::createFromInt(1),COMVariant::createFromStr(com_Items.CellEditor(h,COMVariant::createFromInt(0)).Mask())); exg2antt1.EndUpdate(); } |
1588 |
How can I display and edit an integer number to show grouping digits too ( no decimals)
public void init() { COM com_Column,com_Editor; anytype var_Column,var_Editor; ; super(); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Float")); com_Column = var_Column; com_Column.FormatColumn("value format `0`"); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.EditType(8/*MaskType*/); com_Editor.Mask(";;;float,digits=0"); exg2antt1.Items().AddItem(COMVariant::createFromInt(192278)); } |
1587 |
How can I display and edit a float number to show grouping digits too
public void init() { COM com_Column,com_Editor; anytype var_Column,var_Editor; ; super(); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Float")); com_Column = var_Column; com_Column.FormatColumn("value format ``"); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.EditType(8/*MaskType*/); com_Editor.Mask(";;;float"); exg2antt1.Items().AddItem(COMVariant::createFromInt(192278)); } |
1586 |
How can I mask a phone number
public void init() { COM com_Editor,com_Editor1,com_Editor2,com_Editor3,com_Items; anytype var_Editor,var_Editor1,var_Editor2,var_Editor3,var_Items; int h; str var_s; ; super(); exg2antt1.CauseValidateValue(true); exg2antt1.DrawGridLines(-2/*exRowLines*/); exg2antt1.FullRowSelect(0/*exColumnSel*/); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Phone"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(8/*MaskType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem(); var_Editor = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor = var_Editor; com_Editor.EditType(8/*MaskType*/); var_s = "!(999) 000 0000;1;;select=1,empty,overtype,warning=invalid characer,invalid=The value you entered isn't appropriate for the inpu"; var_s = var_s + "t mask <b>'<%mask%>'</b> specified for this field."; com_Editor.Mask(var_s); h = com_Items.AddItem("0123"); var_Editor1 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor1 = var_Editor1; com_Editor1.EditType(8/*MaskType*/); com_Editor1.Mask("!(999) 000 0000;2;;select=4"); h = com_Items.AddItem("0123"); var_Editor2 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor2 = var_Editor2; com_Editor2.EditType(8/*MaskType*/); com_Editor2.Mask("`Phone: `!(999) 000-0000"); h = com_Items.AddItem("(074) 876-1222"); var_Editor3 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor3 = var_Editor3; com_Editor3.EditType(8/*MaskType*/); com_Editor3.Mask("!(999) 000-0000;0"); } |
1585 |
Is it possible to display the ColorType fields using RGB format
public void init() { COM com_Editor,com_Editor1,com_Editor2,com_Editor3,com_Editor4,com_Editor5,com_Editor6,com_Items; anytype var_Editor,var_Editor1,var_Editor2,var_Editor3,var_Editor4,var_Editor5,var_Editor6,var_Items; int h; ; super(); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Color"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(9/*ColorType*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromInt(255)); h = com_Items.AddItem(COMVariant::createFromInt(255)); var_Editor = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor = var_Editor; com_Editor.EditType(9/*ColorType*/); com_Editor.Mask("`RGB(`{0,255}\\,{0,255}\\,{0,255}`)`;;0"); h = com_Items.AddItem(COMVariant::createFromInt(255)); var_Editor1 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor1 = var_Editor1; com_Editor1.EditType(9/*ColorType*/); com_Editor1.Mask("`&H`XXXXXXXX`&`;;0;overtype,insertype,warning=Wrong!"); h = com_Items.AddItem(COMVariant::createFromInt(255)); var_Editor2 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor2 = var_Editor2; com_Editor2.EditType(9/*ColorType*/); com_Editor2.Mask("`0x`XX `0x`XX `0x`XX;;0;overtype,insertype,warning=Wrong!"); h = com_Items.AddItem(COMVariant::createFromInt(255)); var_Editor3 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor3 = var_Editor3; com_Editor3.EditType(9/*ColorType*/); com_Editor3.Mask("R{0,255} G{0,255} B{0,255};;0;overtype,insertype,warning=Wrong!"); h = com_Items.AddItem(COMVariant::createFromInt(255)); var_Editor4 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor4 = var_Editor4; com_Editor4.EditType(9/*ColorType*/); com_Editor4.Mask("`(hexa) RGB 0x`XXXXXX;;0;overtype,insertype,warning=Wrong!"); h = com_Items.AddItem(COMVariant::createFromInt(255)); var_Editor5 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor5 = var_Editor5; com_Editor5.EditType(9/*ColorType*/); com_Editor5.Mask("`(decimal) Red: `{0,255}` Green: `{0,255}` Blue: `{0,255};;0;overtype,insertype,warning=Wrong!"); h = com_Items.AddItem(COMVariant::createFromInt(255)); var_Editor6 = com_Items.CellEditor(h,COMVariant::createFromInt(0)); com_Editor6 = var_Editor6; com_Editor6.EditType(9/*ColorType*/); com_Editor6.Mask("`(combine) Red: `{0,255}` Green: 0x`XX` Blue: `{0,255};;0;overtype,insertype,warning=Wrong!"); } |
1584 |
How can I specify a different color for bars that cross over the non-working part of the chart
public void init() { COM com_Bar,com_Bars,com_Chart,com_Items; anytype var_Bar,var_Bars,var_Chart,var_Items; ; super(); exg2antt1.Columns().Add("Task"); var_Bars = exg2antt1.Chart().Bars(); com_Bars = var_Bars; var_Bar = COM::createFromObject(com_Bars.Copy("Task","STask")); com_Bar = var_Bar; com_Bar.Color(WinApi::RGB2int(255,0,0)); var_Bar = COM::createFromObject(com_Bars.Add("Task:STask")); com_Bar = var_Bar; com_Bar.Shortcut("TS"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,96); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Chart.NonworkingDaysColor(com_Chart.Bars().Item("STask").Color()); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Task 1"),"TS",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/16/2001",213))); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,96); } */ |
1583 |
How can I merge two columns
// AddItem event - Occurs after a new Item has been inserted to Items collection. void onEvent_AddItem(int _Item) { ; exg2antt1.Items().CellMerge(_Item,COMVariant::createFromInt(0),COMVariant::createFromInt(1)); } public void init() { COM com_Items; anytype var_Items; ; super(); exg2antt1.MarkSearchColumn(false); exg2antt1.TreeColumnIndex(-1); exg2antt1.DrawGridLines(-1/*exAllLines*/); COM::createFromVariant(exg2antt1.Columns().Add("C1")).Def(16/*exCellSingleLine*/,COMVariant::createFromBoolean(false)); exg2antt1.Columns().Add("C2"); exg2antt1.Columns().Add("C3"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); com_Items.AddItem("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."); } |
1582 |
How can I expand an item once the user clicks the column's checkbox
|
1581 |
How can I define a column with check-box
public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; int h,hChild; ; super(); exg2antt1.BeginUpdate(); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("")); com_Column = var_Column; com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true)); com_Column.AllowSizing(false); com_Column.Width(18); com_Column.PartialCheck(true); com_Columns.Add("Tasks"); exg2antt1.ShowFocusRect(false); exg2antt1.HasButtons(0/*exNoButtons*/); exg2antt1.TreeColumnIndex(1); exg2antt1.Indent(14); exg2antt1.ExpandOnDblClick(false); exg2antt1.LinesAtRoot(0/*exNoLinesAtRoot*/); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem(""); com_Items.CellState(h,COMVariant::createFromInt(0),1); com_Items.CellValue(h,COMVariant::createFromInt(1),"Project"); hChild = com_Items.InsertItem(h,,""); com_Items.CellValue(hChild,COMVariant::createFromInt(1),"Task 1"); hChild = com_Items.InsertItem(h,,""); com_Items.CellValue(hChild,COMVariant::createFromInt(1),"Task 2"); com_Items.ExpandItem(h,true); exg2antt1.EndUpdate(); } |
1580 |
We need to know how it's possibile to have the bars on the same line and not in a different line
public void init() { COM com_Bar,com_Chart,com_Items; anytype var_Bar,var_Chart,var_Items; int h; ; super(); exg2antt1.BeginUpdate(); exg2antt1.DrawGridLines(-1/*exAllLines*/); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.DrawGridLines(-1/*exAllLines*/); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2002",213))); var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar; com_Bar.OverlaidType(515/*exOverlaidBarsStackAutoArrange | exOverlaidBarsStack*/); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); exg2antt1.Columns().Add("Task"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Tasks"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2002",213)),COMVariant::createFromDate(str2Date("1/7/2002",213)),"A"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/3/2002",213)),COMVariant::createFromDate(str2Date("1/8/2002",213)),"B"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/4/2002",213)),COMVariant::createFromDate(str2Date("1/9/2002",213)),"C"); com_Items.ItemBar(h,"A",33/*exBarColor*/,COMVariant::createFromInt(255)); com_Items.AddLink("AB",h,"A",h,"B"); com_Items.AddLink("BC",h,"B",h,"C"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1579 |
The Change event gets me the today date. How can I find what user typed
// Change event - Occurs when the user changes the cell's content. void onEvent_Change(int _Item,int _ColIndex,COMVariant /*variant*/ _NewValue) { ; print( "NewValue:" ); print( _NewValue ); print( "EditingValue:" ); print( exg2antt1.EditingText() ); } public void init() { COM com_Editor; anytype var_Editor; ; super(); exg2antt1.BeginUpdate(); /*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(true,0); var_Editor = COM::createFromObject(COM::createFromVariant(exg2antt1.Columns().Add("Edit"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); exg2antt1.Items().AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(true,0); } */ |
1578 |
How can I add a footer row
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.ShowLockedItems(true); exg2antt1.DrawGridLines(2/*exVLines*/); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.LockedItemCount(2/*exBottom*/,1); h = com_Items.LockedItem(2/*exBottom*/,0); com_Items.ItemBackColor(h,WinApi::RGB2int(128,128,128)); com_Items.ItemForeColor(h,WinApi::RGB2int(255,255,255)); com_Items.CellValue(h,COMVariant::createFromInt(0),"footer c1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"footer c2"); com_Items.CellValue(com_Items.AddItem("cell"),COMVariant::createFromInt(1),"cell"); } |
1577 |
How can I add a header row
public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.ShowLockedItems(true); exg2antt1.DrawGridLines(2/*exVLines*/); exg2antt1.Columns().Add("C1"); exg2antt1.Columns().Add("C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.LockedItemCount(0/*exTop*/,1); h = com_Items.LockedItem(0/*exTop*/,0); com_Items.ItemBackColor(h,WinApi::RGB2int(128,128,128)); com_Items.ItemForeColor(h,WinApi::RGB2int(255,255,255)); com_Items.CellValue(h,COMVariant::createFromInt(0),"footer c1"); com_Items.CellValue(h,COMVariant::createFromInt(1),"footer c2"); com_Items.CellValue(com_Items.AddItem("cell"),COMVariant::createFromInt(1),"cell"); } |
1576 |
How can I fix a column, while other sizable and fill the control's client
public void init() { COM com_Column; anytype var_Column; ; super(); exg2antt1.ColumnAutoResize(true); exg2antt1.Columns().Add("Sizable"); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("F")); com_Column = var_Column; com_Column.AllowSizing(false); com_Column.Width(16); } |
1575 |
How can I programmatically add more columns to the sort bar and other to be sorted, but not included in the sort bar
public void init() { COM com_Columns; anytype var_Columns; ; super(); exg2antt1.SortBarVisible(true); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; com_Columns.Add(0); com_Columns.Add(1); com_Columns.Add(2); com_Columns.Add(3); com_Columns.Add(4); exg2antt1.Layout("multiplesort=\"C3:1 C4:2\";singlesort=\"C2:1\""); } |
1574 |
I'm using different bar types, in order to use different colours. The problem I'm having is that when two bars of different types overlap, and should in the histogram show as overallocated, they instead overlap here too, and show as single unit. Is there a way I can correctly show this as an overallocation
public void init() { COM com_Bar,com_Chart,com_Items; anytype var_Bar,var_Chart,var_Items; int h; ; super(); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Chart.HistogramVisible(true); com_Chart.HistogramHeight(32); var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar; com_Bar.HistogramPattern(6/*exPatternBDiagonal*/); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213))); h = com_Items.AddItem("Item 2"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213))); com_Items.ItemBar(h,"",33/*exBarColor*/,COMVariant::createFromInt(255)); com_Items.AddBar(com_Items.AddItem("Item 3"),"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/9/2001",213))); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1573 |
Is it possible to assign a different EBN to a specified bar
public void init() { COM com_Appearance,com_Chart,com_Items; anytype var_Appearance,var_Chart,var_Items; int h; ; super(); exg2antt1.BeginUpdate(); var_Appearance = exg2antt1.VisualAppearance(); com_Appearance = var_Appearance; com_Appearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); com_Appearance.Add(2,"c:\\exontrol\\images\\pushed.ebn"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); exg2antt1.Columns().Add("Tasks"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Task 1"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213))); h = com_Items.AddItem("Task 2"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213))); com_Items.ItemBar(h,"",33/*exBarColor*/,COMVariant::createFromInt(255)); h = com_Items.AddItem("Task 3"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213))); com_Items.ItemBar(h,"",33/*exBarColor*/,COMVariant::createFromInt(16777216)); h = com_Items.AddItem("Task 4"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213))); com_Items.ItemBar(h,"",33/*exBarColor*/,COMVariant::createFromInt(16777471)); h = com_Items.AddItem("Task 5"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213))); com_Items.ItemBar(h,"",33/*exBarColor*/,COMVariant::createFromInt(33619967)); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1572 |
How can I provide a mask for a date column
// Change event - Occurs when the user changes the cell's content. void onEvent_Change(int _Item,int _ColIndex,COMVariant /*variant*/ _NewValue) { ; print( "Prev Value " ); print( exg2antt1.Items().CellValue(_Item,_ColIndex) ); print( "Check and Update the NewValue" ); print( _NewValue ); _NewValue = str2Date("1/1/2001",213); } public void init() { COM com_Column,com_Editor; anytype var_Column,var_Editor; ; super(); exg2antt1.BeginUpdate(); exg2antt1.MarkSearchColumn(false); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Date")); com_Column = var_Column; com_Column.FormatColumn("day(value) + `/` + month(value) + `/` + year(value)"); var_Editor = com_Column.Editor(); com_Editor = var_Editor; com_Editor.EditType(7/*DateType*/); com_Editor.Mask("{1,12}\\/{1,31}\\/{1,2099}"); exg2antt1.Items().AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213))); exg2antt1.EndUpdate(); } |
1571 |
I am trying to introduce a custom tool tip to those particular cells. I have it working and I know I can style the font etc. however, what I would like to do is style the tooltip container itself like add some padding or add a border color. Is this possible
|
1570 |
Is it possible to edit a float number without using of e/E/d/D (exponent) and +/- (signs) characters
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Numeric(770/*exDisableSigns | exFloatInteger*/); exg2antt1.Items().AddItem(COMVariant::createFromReal(1.22)); } |
1569 |
How can I edit a float number with no using of e/E/d/D and + character
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Numeric(258/*exDisablePlus | exFloatInteger*/); exg2antt1.Items().AddItem(COMVariant::createFromReal(1.22)); } |
1568 |
Is it possible to edit a float number with no using of e/E/d/D (exponent) characters
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Numeric(2/*exFloatInteger*/); exg2antt1.Items().AddItem(COMVariant::createFromReal(1.22)); } |
1567 |
How can I edit an integer with no using of +/- signs
public void init() { COM com_Editor; anytype var_Editor; ; super(); var_Editor = COM::createFromVariant(exg2antt1.Columns().Add("Edit")).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); com_Editor.Numeric(1023/*0x3ff | exDisableSigns | exFloatInteger | exFloat*/); exg2antt1.Items().AddItem(COMVariant::createFromInt(1)); } |
1566 |
When I'm trying to show string with "line break" character (vbCrLF) in a textbox, it shows 2 squares. Is there any way to hide these squares
public void init() { COM com_Column,com_Column1,com_Column2,com_Columns,com_Items; anytype var_Column,var_Column1,var_Column2,var_Columns,var_Items; ; super(); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Value"); var_Column = COM::createFromVariant(com_Columns.Add("CellSingleLine = False")); com_Column = var_Column; com_Column.ComputedField("%0"); com_Column.Def(16/*exCellSingleLine*/,COMVariant::createFromBoolean(false)); var_Column1 = COM::createFromVariant(com_Columns.Add("FormatColumn/replace CRLF")); com_Column1 = var_Column1; com_Column1.ComputedField("%0"); com_Column1.FormatColumn("value replace `\\r\\n` with ``"); var_Column2 = COM::createFromVariant(com_Columns.Add("FormatColumn/replace TAB,CRLF")); com_Column2 = var_Column2; com_Column2.ComputedField("%0"); com_Column2.FormatColumn("(value replace `\\t` with ``) replace `\\r\\n` with ``"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("a\\ta\\r\\nb\\tb"); } |
1565 |
I am using the Chart.ShowLinksColor property, the question is it is possible to prevent changing the bar's color
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int h1,h2,h3; ; super(); exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight(24); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.LevelCount(2); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,48); com_Chart.NonworkingDays(0); com_Chart.LinksStyle(0/*exLinkSolid*/); com_Chart.ShowLinksColor(17/*exUpdateColorLinksOnly | exShowLinksStartFrom*/,WinApi::RGB2int(255,0,0)); com_Chart.ShowLinksColor(18/*exUpdateColorLinksOnly | exShowLinksEndTo*/,WinApi::RGB2int(0,255,0)); var_Items = exg2antt1.Items(); com_Items = var_Items; h1 = com_Items.AddItem("Task 1"); com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); h2 = com_Items.AddItem("Task 2"); com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); com_Items.ItemBar(h2,"",257/*exBarSelected*/,COMVariant::createFromBoolean(true)); com_Items.AddLink("L1",h1,"",h2,""); h3 = com_Items.AddItem("Task 3"); com_Items.AddBar(h3,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); com_Items.AddLink("L2",h2,"",h3,""); com_Items.SchedulePDM(0,""); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,48); } */ |
1564 |
Apparently, the links are shown on the back. Is there any option to bring them in front
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int h1,h2; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Tasks"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("9/19/2006",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(0,64); com_Chart.NonworkingDaysPattern(1/*exPatternSolid*/); com_Chart.ShowLinks(17/*exShowLinksFront | exShowExtendedLinks*/); var_Items = exg2antt1.Items(); com_Items = var_Items; h1 = com_Items.AddItem("Task 1"); com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("9/20/2006",213)),COMVariant::createFromDate(str2Date("9/22/2006",213))); h2 = com_Items.AddItem("Task 2"); com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("9/26/2006",213)),COMVariant::createFromDate(str2Date("9/28/2006",213))); com_Items.ItemBar(h2,"",257/*exBarSelected*/,COMVariant::createFromBoolean(true)); com_Items.AddLink("L1",h1,"",h2,""); com_Items.Link("L1",12/*exLinkText*/,"L1"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(0,64); } */ |
1563 |
How can I enable the extended links feature
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int h1,h2,h3; ; super(); exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight(24); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.LevelCount(2); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,48); com_Chart.NonworkingDays(0); com_Chart.LinksStyle(0/*exLinkSolid*/); com_Chart.ShowLinks(1/*exShowExtendedLinks*/); var_Items = exg2antt1.Items(); com_Items = var_Items; h1 = com_Items.AddItem("Task 1"); com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); h2 = com_Items.AddItem("Task 2"); com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); com_Items.AddLink("L1",h1,"",h2,""); h3 = com_Items.AddItem("Task 3"); com_Items.AddBar(h3,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); com_Items.AddLink("L2",h3,"",h2,""); com_Items.SchedulePDM(0,""); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,48); } */ |
1562 |
How do I count all bars in the chart
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int hSummary,hTask; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Items = exg2antt1.Items(); com_Items = var_Items; hSummary = com_Items.AddItem("Task"); com_Items.AddBar(hSummary,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1"); hTask = com_Items.InsertItem(hSummary,,"Task A"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1"); com_Items.AddBar(com_Items.InsertItem(hTask,,"Task A.1"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K11"); com_Items.AddBar(com_Items.InsertItem(hTask,,"Task A.2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K12"); hTask = com_Items.InsertItem(hSummary,,"Task B"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K2"); hTask = com_Items.InsertItem(hTask,,"Task B.1"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/9/2001",213)),"K21"); com_Items.ExpandItem(0,true); print( "Count: " ); print( com_Items.ItemBar(0,"<*>",256/*exBarsCount*/) ); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1561 |
Is there any property to count the all child bars of a specified item ( all descendents )
public void init() { COM com_Bar,com_Bars,com_Chart,com_Items; anytype var_Bar,var_Bars,var_Chart,var_Items; int hSummary,hTask; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars; var_Bar = COM::createFromObject(com_Bars).Copy("Task","CountTask"); com_Bar = var_Bar; com_Bar.Color(WinApi::RGB2int(0,255,0)); var_Items = exg2antt1.Items(); com_Items = var_Items; hSummary = com_Items.AddItem("Project"); com_Items.ItemBold(hSummary,true); hTask = com_Items.InsertItem(hSummary,,"Task A"); com_Items.AddBar(hTask,"CountTask",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1"); com_Items.AddBar(com_Items.InsertItem(hTask,,"Task A.1"),"CountTask",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K11"); com_Items.AddBar(com_Items.InsertItem(hTask,,"Task A.2"),"CountTask",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K12"); hTask = com_Items.InsertItem(hSummary,,"Task B"); com_Items.AddBar(hTask,"CountTask",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K2"); hTask = com_Items.InsertItem(hTask,,"Task B.1"); com_Items.AddBar(hTask,"CountTask",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/9/2001",213)),"K21"); com_Items.ExpandItem(0,true); com_Items.DefaultItem(com_Items.ItemByIndex(0)); print( "Count: " ); print( com_Items.ItemBar(-3,"<*>",256/*exBarsCount*/) ); com_Items.DefaultItem(0); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1560 |
Is there any property to count the child bars of a specified item ( leaf descendents )
public void init() { COM com_Bar,com_Bars,com_Chart,com_Items; anytype var_Bar,var_Bars,var_Chart,var_Items; int hSummary,hTask; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars; var_Bar = COM::createFromObject(com_Bars).Copy("Task","CountTask"); com_Bar = var_Bar; com_Bar.Color(WinApi::RGB2int(0,255,0)); var_Items = exg2antt1.Items(); com_Items = var_Items; hSummary = com_Items.AddItem("Project"); com_Items.ItemBold(hSummary,true); hTask = com_Items.InsertItem(hSummary,,"Task A"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1"); com_Items.AddBar(com_Items.InsertItem(hTask,,"Task A.1"),"CountTask",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K11"); com_Items.AddBar(com_Items.InsertItem(hTask,,"Task A.2"),"CountTask",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K12"); hTask = com_Items.InsertItem(hSummary,,"Task B"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K2"); hTask = com_Items.InsertItem(hTask,,"Task B.1"); com_Items.AddBar(hTask,"CountTask",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/9/2001",213)),"K21"); com_Items.ExpandItem(0,true); com_Items.DefaultItem(com_Items.ItemByIndex(0)); print( "Count: " ); print( com_Items.ItemBar(-2,"<*>",256/*exBarsCount*/) ); com_Items.DefaultItem(0); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1559 |
Is there any property to count the child bars of a specified item ( direct descendents )
public void init() { COM com_Bar,com_Bars,com_Chart,com_Items; anytype var_Bar,var_Bars,var_Chart,var_Items; int hSummary,hTask; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars; var_Bar = COM::createFromObject(com_Bars).Copy("Task","CountTask"); com_Bar = var_Bar; com_Bar.Color(WinApi::RGB2int(0,255,0)); var_Items = exg2antt1.Items(); com_Items = var_Items; hSummary = com_Items.AddItem("Project"); com_Items.ItemBold(hSummary,true); hTask = com_Items.InsertItem(hSummary,,"Task A"); com_Items.AddBar(hTask,"CountTask",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1"); com_Items.AddBar(com_Items.InsertItem(hTask,,"Task A.1"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K11"); com_Items.AddBar(com_Items.InsertItem(hTask,,"Task A.2"),"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K12"); hTask = com_Items.InsertItem(hSummary,,"Task B"); com_Items.AddBar(hTask,"CountTask",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K2"); hTask = com_Items.InsertItem(hTask,,"Task B.1"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/9/2001",213)),"K21"); com_Items.ExpandItem(0,true); com_Items.DefaultItem(com_Items.ItemByIndex(0)); print( "Count: " ); print( com_Items.ItemBar(-1,"<*>",256/*exBarsCount*/) ); com_Items.DefaultItem(0); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1558 |
How can I define all child items to belong to a summary bar (DefineSummaryBars-3)
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int hSummary,hTask; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Items = exg2antt1.Items(); com_Items = var_Items; hSummary = com_Items.AddItem("Summary"); com_Items.AddBar(hSummary,"Summary",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213)),""); hTask = com_Items.InsertItem(hSummary,,"Task A"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1"); hTask = com_Items.InsertItem(hTask,,"Task A.1"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K11"); hTask = com_Items.InsertItem(hSummary,,"Task B"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K2"); hTask = com_Items.InsertItem(hTask,,"Task B.1"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/9/2001",213)),"K21"); com_Items.DefineSummaryBars(hSummary,"",-3,"<K*>"); com_Items.ExpandItem(0,true); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1557 |
Can I define automatically the leaf descendents of the summary bar (DefineSummaryBars-2)
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int hSummary,hTask; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Items = exg2antt1.Items(); com_Items = var_Items; hSummary = com_Items.AddItem("Summary"); com_Items.AddBar(hSummary,"Summary",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213)),""); hTask = com_Items.InsertItem(hSummary,,"Task A"); com_Items.AddBar(hTask,"1Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1"); hTask = com_Items.InsertItem(hTask,,"Task A.1"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K11"); hTask = com_Items.InsertItem(hSummary,,"Task B"); com_Items.AddBar(hTask,"1Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K2"); hTask = com_Items.InsertItem(hTask,,"Task B.1"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/9/2001",213)),"K21"); com_Items.DefineSummaryBars(hSummary,"",-2,"<K*>"); com_Items.ExpandItem(0,true); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1556 |
How can I assign the childs bars to a summary bar (DefineSummaryBars-1)
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int hSummary,hTask; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Items = exg2antt1.Items(); com_Items = var_Items; hSummary = com_Items.AddItem("Summary"); com_Items.AddBar(hSummary,"Summary",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213)),""); hTask = com_Items.InsertItem(hSummary,,"Task A"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1"); hTask = com_Items.InsertItem(hSummary,,"Task B"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"K2"); com_Items.ExpandItem(hSummary,true); com_Items.DefineSummaryBars(hSummary,"",-1,"<*>"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1555 |
Is it possible to define a summary bar to include all bars in the chart (DefineSummaryBars-0)
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int hSummary; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Items = exg2antt1.Items(); com_Items = var_Items; hSummary = com_Items.AddItem("Summary"); com_Items.AddBar(hSummary,"Summary",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213)),"summary"); com_Items.AddBar(com_Items.AddItem("Task A"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task B"),"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/9/2001",213)),"K2"); com_Items.AddBar(com_Items.AddItem("Task C"),"Task",COMVariant::createFromDate(str2Date("1/11/2001",213)),COMVariant::createFromDate(str2Date("1/14/2001",213)),"K3"); com_Items.DefineSummaryBars(hSummary,"summary",0,"<K*>"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1554 |
Is there any way to "unselect" radio group
// DblClick event - Occurs when the user dblclk the left mouse button over an object. void onEvent_DblClick(int _Shift,int _X,int _Y) { COM com_Items; anytype var_Items; int h; ; var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.CellChecked(1234); com_Items.CellHasCheckBox(COMVariant::createFromInt(0),h,true); com_Items.CellState(COMVariant::createFromInt(0),h,0); com_Items.CellHasCheckBox(COMVariant::createFromInt(0),h,false); } // SelectionChanged event - Fired after a new item has been selected. void onEvent_SelectionChanged() { COM com_Items; anytype var_Items; ; var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellState(com_Items.FocusItem(),COMVariant::createFromInt(0),1); } public void init() { COM com_Items; anytype var_Items; int h; ; super(); exg2antt1.MarkSearchColumn(false); exg2antt1.SelBackColor(WinApi::RGB2int(255,255,128)); exg2antt1.SelForeColor(WinApi::RGB2int(0,0,0)); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Radio 1"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(0),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(0),1234); h = com_Items.AddItem("Radio 2"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(0),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(0),1234); com_Items.CellState(h,COMVariant::createFromInt(0),1); h = com_Items.AddItem("Radio 3"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(0),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(0),1234); } |
1553 |
The Column.Alignment property does not seem to work for cells with images in them. What can be done
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; str var_s; ; super(); exg2antt1.BeginUpdate(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.TreeColumnIndex(-1); exg2antt1.DrawGridLines(-1/*exAllLines*/); exg2antt1.HeaderHeight(24); exg2antt1.DefaultItemHeight(24); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Image")); com_Column = var_Column; com_Column.AllowSizing(false); com_Column.Width(32); com_Column.HTMLCaption("<img>1</img>"); com_Column.HeaderAlignment(1/*CenterAlignment*/); com_Column.Alignment(1/*CenterAlignment*/); com_Column.Def(17/*exCellValueFormat*/,COMVariant::createFromInt(1)); exg2antt1.Columns().Add("Rest"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("<img>1</img>"); com_Items.AddItem("<img>2</img>"); com_Items.AddItem("<img>3</img>"); exg2antt1.EndUpdate(); } |
1552 |
Is there any way to determine in a bar would overlay another bar or to not allow this and get some error indication
// BarResize event - Occurs when a bar is moved or resized. void onEvent_BarResize(int _Item,COMVariant _Key) { ; exg2antt1.Refresh(); } public void init() { COM com_Bar,com_Bar1,com_Bars,com_Chart,com_Items; anytype var_Bar,var_Bar1,var_Bars,var_Chart,var_Items; int h; ; super(); exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight(22); exg2antt1.Columns().Add("InterectBars"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,48); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar; com_Bar.OverlaidType(2/*exOverlaidBarsIntersect*/); com_Bar.Overlaid(2/*exOverlaidBarsIntersect*/,"ERROR"); var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars; var_Bar1 = COM::createFromObject(com_Bars).Add("ERROR"); com_Bar1 = var_Bar1; com_Bar1.Color(WinApi::RGB2int(255,0,0)); com_Bar1.Pattern(1/*exPatternSolid*/); com_Bar1.Height(7); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem(""); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"A","A"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"B","B"); com_Items.CellValue(h,COMVariant::createFromInt(0),com_Items.IntersectBars(h,"A",h,"B")); h = com_Items.AddItem(""); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/9/2001",213)),"A","A"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/10/2001",213)),COMVariant::createFromDate(str2Date("1/13/2001",213)),"B","B"); com_Items.CellValue(h,COMVariant::createFromInt(0),com_Items.IntersectBars(h,"A",h,"B")); h = com_Items.AddItem(""); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/9/2001",213)),"B","B"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/10/2001",213)),COMVariant::createFromDate(str2Date("1/13/2001",213)),"A","A"); com_Items.CellValue(h,COMVariant::createFromInt(0),com_Items.IntersectBars(h,"A",h,"B")); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,48); } */ |
1551 |
Is it possible to change the font size of the header compared to that of the control. I would like to make the font of the headers smaller
public void init() { COM com_Column,com_Columns,com_Items; anytype var_Column,var_Columns,var_Items; ; super(); exg2antt1.BeginUpdate(); exg2antt1.HeaderHeight(32); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("ID")); com_Column = var_Column; com_Column.HTMLCaption("<font ;16>ID"); com_Column.Width(32); com_Column.AllowSizing(false); COM::createFromVariant(com_Columns.Add("Task")).HTMLCaption("<font ;16>Task"); exg2antt1.FocusColumnIndex(1); exg2antt1.ShowFocusRect(false); /*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(true,0); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem(COMVariant::createFromInt(1)),COMVariant::createFromInt(1),"Task A"); com_Items.CellValue(com_Items.AddItem(COMVariant::createFromInt(2)),COMVariant::createFromInt(1),"Task B"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(true,0); } */ |
1550 |
How can I create items and bars at runtime
public void init() { COM com_Chart,com_Column,com_Columns,com_Editor; anytype var_Chart,var_Column,var_Columns,var_Editor; ; super(); exg2antt1.BeginUpdate(); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("ID")); com_Column = var_Column; com_Column.FormatColumn("1 index ''"); com_Column.Width(32); com_Column.AllowSizing(false); var_Editor = COM::createFromObject(COM::createFromVariant(com_Columns.Add("Task"))).Editor(); com_Editor = var_Editor; com_Editor.EditType(1/*EditType*/); exg2antt1.FocusColumnIndex(1); exg2antt1.ShowFocusRect(false); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); com_Chart.AllowCreateBar(1/*exCreateBarAuto*/); exg2antt1.Template("Chart.Bars(\"Task\"){Def(3) = \"<%=%C1%>\";Def(4)=18}"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1549 |
How can I a group summary bar with a task bar, so when the summary bar changes the task bar will move accordingly
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int hSummary,hTask; ; super(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Items = exg2antt1.Items(); com_Items = var_Items; hSummary = com_Items.AddItem("Summary"); com_Items.AddBar(hSummary,"Summary",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213))); hTask = com_Items.AddItem("Task A"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213))); com_Items.DefineSummaryBars(hSummary,"",hTask,""); hTask = com_Items.AddItem("Task B"); com_Items.AddBar(hTask,"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213))); com_Items.DefineSummaryBars(hSummary,"",hTask,""); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1548 |
How can I show the bars using a solid color, with no pattern inside
public void init() { COM com_Bar,com_Chart,com_Items; anytype var_Bar,var_Chart,var_Items; int h; ; super(); exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight(24); exg2antt1.DrawGridLines(-1/*exAllLines*/); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.DrawGridLines(-1/*exAllLines*/); com_Chart.NonworkingDays(0); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar; com_Bar.Pattern(1/*exPatternSolid*/); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Solid A"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"A"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"B"); com_Items.ItemBar(h,"B",33/*exBarColor*/,COMVariant::createFromInt(255)); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),"C"); com_Items.ItemBar(h,"C",33/*exBarColor*/,COMVariant::createFromInt(65280)); h = com_Items.AddItem("Solid B"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"A"); com_Items.ItemBar(h,"A",7/*exBarBackColor*/,COMVariant::createFromInt(255)); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"B"); com_Items.ItemBar(h,"B",33/*exBarColor*/,COMVariant::createFromInt(255)); com_Items.ItemBar(h,"B",7/*exBarBackColor*/,COMVariant::createFromInt(65280)); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),"C"); com_Items.ItemBar(h,"C",33/*exBarColor*/,COMVariant::createFromInt(16711680)); com_Items.ItemBar(h,"C",7/*exBarBackColor*/,COMVariant::createFromInt(16711935)); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1547 |
Basically what I am trying to do is replicate MS Project look & feel. Is that possible
public void init() { COM com_Appearance,com_Bar,com_Chart; anytype var_Appearance,var_Bar,var_Chart; str var_s,var_s1,var_s2,var_s3; ; super(); exg2antt1.BeginUpdate(); var_Appearance = exg2antt1.VisualAppearance(); com_Appearance = var_Appearance; var_s = "gBFLBCJwBAEHhEJAEGg4BNUMQAAYAQGKIYBkAKBQAGaAoDDMOQ4QwAAxDCKsEwsACEIrjKCRShyCYZRhGcTALD8EhhECTZKkAYQEiKLoaRzAcwyDAcQRFCKUJxhEYZai"; var_s = var_s + "+NobSBQMZqBQgASIUCLZ5ACSYEigAovTULCKwJiWNZDUTRcTxCKQahLLivIhGUYKfgmY5lT5VUT1HS9IShJSmKTlORLOi+M4zUJLc4SVblGz7FyfYDBKygLqqFigLAxd"; var_s = var_s + "DYTRNfzjHiTKbtGA7MADA4DVTAeC2bC+EYVTytY4sHQrIACZ5iWREMhXTi0E4rTa6dTxaS6KzKGqsZbsNAbHLdHTfVy1Mx1XaobqDJZdaTpdjaTDeJSjVjKdx4TZqSiz"; var_s = var_s + "jSGJOgcU4RhcIQDDURhIESXwEGgbQJBQQjeggQBiC4NJAluGJrAUB5Lmmc56n4Pp/i+NQjmqdQ5k2J5+AGAAgCgFgEgAHxQAGfoBmAOA2AaAxghgLgOgMIJ4AoER8mEW"; var_s = var_s + "BSBoNohHKAgZgSYgIHYH4ImCB5OAqBghjiEgcgmIQoioD4IiKGJGCsUgUHiVirmOBQVAEgI="; com_Appearance.Add(1,COMVariant::createFromStr(var_s)); com_Appearance.Add(39,"CP:1 -1 -1 0 0"); var_s1 = "gBFLBCJwBAEHhEJAEGg4BEcMQAAYAQGKIYBkAKBQAGaAoDDMOQ4QwAAxDCKsEwsACEIrjKCRShyCYZRhGcTAFD8EhhECTZKkAZwEiKLoaRzAcwyDAcQRFCKUJxlKa5Pj"; var_s1 = var_s1 + "aLwAAbJMZKAqDDgBIijIqnKA5JoyKIkTzCIJxXScByDGqNaQoehYXhEMg1CTXVgRCKoYTDBKybLqGT6VoCP5vWJaURWHZFTTJOyNagmSJ6XACbQMW7gNYQGBEEigNIxT"; var_s1 = var_s1 + "oOU4jFDGIB2VAQRK5BDQbQSFCpIRCCRQYhcQJ6YIAD76HomS5NU7UNKhHSdMy3J6ra5sOqbBqWa5LWjbNq3DadSzvPKub5vexwHwWawSUDkOR5Li+M43S4JPS5bZdDxP"; var_s1 = var_s1 + "iWVJrnWOw9F6XxTiGWpsHcO5+C6Xx7kOZpwHoOxeF8T4fkeYJgnEdZwOwQRBnSex9H6f4vk+c5xn4fZQhQBCAg=="; com_Appearance.Add(40,COMVariant::createFromStr(var_s1)); var_s2 = "gBFLBCJwBAEHhEJAEGg4BQICg6AADACAxRDAMkOQAGaAoDDUMQyQwAAxDSK8EwsACEIrjKCRShyCYZRhGcTALBMIwKGABIRGUZJGDkOYgDCBEhTHDUOwHGyQYDkCQoRi"; var_s2 = var_s2 + "YMAwTBQMaTXDdCQ1ECkJomObqAgkMZCTbKMySAA0NgPD6sKSjOIRSDUJZcV5EoAKfiqZIRSJSMZVLLVNSVJipAAlOTZPo6JJuTLOE4WVRcSydH6oAApeg6KoYAFzQAED"; var_s2 = var_s2 + "CbYgOTKBYLUOCwTZmDwTK6BcTtXDbejeYYcZ7DNj2NYtJ4TRCBcpzLLIXrCKg0TBPQ4YNC2DT5VDWIq1aDdQo7MpxWjlGI5Ri2c51UDSYi0G4tDyLSYWXDfFSQTrHDQX"; var_s2 = var_s2 + "hAAghCUAxJgyaB1DkGRyDCKBhAiGwLg0DYhCKDI8CcVwIAwRotBeAYCCmBZ0nsfR+n+L5PlYE53BwTpzn4AIAiAGAOAMfZfmeVBwDuD54C4DYDCCaA6AgQJfHGPJtD+Y"; var_s2 = var_s2 + "RoGIF4GGGrAAH2RpjjCf4IGIOIKCSCQhmeXBtDqT54i4LYLCKaI6CkfRGlOKgtg2IxYl4OoMkwIYwmkP5jmkAg/hAZAYnAaw6A+eQeEmEgkikKg8BqDkYFCFIlBkThTg"; var_s2 = var_s2 + "8BoThif4WGWORqFyFwjkGIJlD+ZgphIY4ZGYWYEmSGQmjGIhthvMpwGcOJPnmTh1h0JxploPAZg4I5+HyH4nlmfh/g8BhTgSf4hGgegagiIlShCYA/miahCg+JBpUIYw"; var_s2 = var_s2 + "3k+ehehmJgpioaoWDeKYagAY4oioSZFn2BQfFGCJdD+aoqjKK4rGqWJwGENwPnqTo1i1gtiBgDYzn6PIviuWp+j+DwFnMaJ/jEbB7BqSIyCOQR4lkP5smsQpPjQbQbDS"; var_s2 = var_s2 + "WI0C0cR6lmNpqGMCgJDCBZTFyf44G4O4KmSOWTnCVg/m6K4ymuOxu4OWw1E+e5OnWPQvGvYgWg0Q5+nyP4vlvE+OBMTJ/kEcB8BsCJCDATArA6QhxAgeIgkScRMFcFpF"; var_s2 = var_s2 + "lCFAEICA"; com_Appearance.Add(41,COMVariant::createFromStr(var_s2)); var_s3 = "gBFLBCJwBAEHhEJAEGg4BY8MQAAYAQGKIYBkAKBQAGaAoDDMOQ4QwAAwjQLMEwsACEIrjKCRShyCYZRhGcTALD8EhhECTZKkAYgEiKLoaRzAcwyDAcQRFCKUJxhEY5ai"; var_s3 = var_s3 + "+NobRCAUiwHQUBr/I4AKLfeJ5dACKYNShRMrSABMNgZBKpJAqKiqJoiFoRDINIi2BYUIhqGCxYRseyZegmEYWVTREr3HKsVTtAanjZSJakXxnGaQJ7jKaLXo6II8YTIW"; var_s3 = var_s3 + "BABaIAQiBahQArOiKchaTZ5YheFRYVBOG4bK6BcguW4qGxSXpuRxZOo2YAFVzNNC3YzkCIcegnIp9ZxeFK5Tg1Z4XKTaNwqPBcYpHPqdVhCOgYZwUb5XMjWNatLYIboz"; var_s3 = var_s3 + "iiUhzCAeJeG6ZAAAiBIUA0JgziGVJkGUGJIBgUYSBEN5VBoGxCEUHItjSFAxBcRhim4dIqFGTB+BUfxfneegAgCYAoBQFR+lQeASAEBRIGESAogMYJ4DoEIEmCaAqAoJ"; var_s3 = var_s3 + "oGGCbgYgaIYYG4HoHGICByCKAoKmGZBOgkYh4hoKIKmKKI2CmC5giMBINBgY0AjODRjgiXg6g2I8glUKAHEifhBhAJApBYRIRmQOQmAoOgLBIEhMhOJJZD4UoUGUSRCF"; var_s3 = var_s3 + "aAoOHKPIAhYZY5GoXIXmWaYGF2GJlgKMB9DmZhpiIZ4aGaSYuG6GomigWgGDmCohmYdIdicWZeHqHRnCgHgIh8aAIBoCA/lAECAg"; com_Appearance.Add(42,COMVariant::createFromStr(var_s3)); exg2antt1.Appearance(671088640); exg2antt1.BackColor(WinApi::RGB2int(255,255,255)); exg2antt1.BackColorLevelHeader(WinApi::RGB2int(255,255,255)); exg2antt1.BackColorHeader(0x27000000); exg2antt1.SelBackColor(WinApi::RGB2int(0,0,0)); exg2antt1.SelForeColor(WinApi::RGB2int(255,255,255)); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.BackColorLevelHeader(0x27000000); com_Chart.BackColor(WinApi::RGB2int(255,255,255)); var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar; com_Bar.Color(0x2a000000); exg2antt1.FilterBarBackColor(0x1000000); exg2antt1.Background(32/*exCursorHoverColumn*/,0x29000000); exg2antt1.Background(64/*exToolTipAppearance*/,0x1000000); exg2antt1.Background(18/*exSplitBar*/,0x1000000); exg2antt1.EndUpdate(); } |
1546 |
Is there anyway to change the style of the splitter which separates the list/chart
public void init() { ; super(); exg2antt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.Background(0/*exHeaderFilterBarButton*/,0x1000000); exg2antt1.Background(18/*exSplitBar*/,0x1ff0000); } |
1545 |
Does your control support subscript or superscript, in HTML captions
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int h; ; super(); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,64); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Item 1"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); com_Items.ItemBar(h,"",3/*exBarCaption*/,"<sha ;;0>Event <b><font ;6><off -6>2<off 4>3<off 4>1"); com_Items.ItemBar(h,"",4/*exBarHAlignCaption*/,COMVariant::createFromInt(18)); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,64); } */ |
1544 |
I have noticed that the column's header is changed once the cursor hovers it. Is it possible to change that visual appearance
|
1543 |
Is it possible to change the visual appearance of the columns selector/floating bar(3)
public void init() { COM com_Columns; anytype var_Columns; ; super(); exg2antt1.ColumnAutoResize(false); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Column 1"); COM::createFromVariant(com_Columns.Add("Column 2")).Visible(false); exg2antt1.VisualAppearance().Add(2,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.VisualAppearance().Add(3,"c:\\exontrol\\images\\pushed.ebn"); exg2antt1.Background(92/*exColumnsFloatAppearance*/,0x2000000); exg2antt1.Background(87/*exColumnsFloatBackColor*/,0x3000000); exg2antt1.Background(93/*exColumnsFloatCaptionBackColor*/,WinApi::RGB2int(246,245,240)); exg2antt1.ColumnsFloatBarVisible(true); } |
1542 |
Is it possible to change the visual appearance of the columns selector/floating bar(2)
public void init() { COM com_Columns; anytype var_Columns; ; super(); exg2antt1.ColumnAutoResize(false); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Column 1"); COM::createFromVariant(com_Columns.Add("Column 2")).Visible(false); exg2antt1.VisualAppearance().Add(3,"c:\\exontrol\\images\\pushed.ebn"); exg2antt1.Background(87/*exColumnsFloatBackColor*/,0x3000000); exg2antt1.ColumnsFloatBarVisible(true); } |
1541 |
Is it possible to change the visual appearance of the columns selector/floating bar(1)
|
1540 |
I am using the ColumnsFloatBarVisible property on True, but still not able to add any column on that list
|
1539 |
Is it possible to list a column to columns selector/floating bar, but still user can use it
public void init() { COM com_Column,com_Columns; anytype var_Column,var_Columns; ; super(); exg2antt1.ColumnAutoResize(false); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Column 1"); COM::createFromVariant(com_Columns.Add("Column 2")).Visible(false); var_Column = COM::createFromVariant(com_Columns.Add("Column 3")); com_Column = var_Column; com_Column.Visible(false); com_Column.Enabled(false); exg2antt1.ColumnsFloatBarVisible(true); } |
1538 |
How can I prevent a specific column not to be listed in the columns selector/floating bar
|
1537 |
Is it possible to change the "Columns" caption being shown in the columns selector/floating bar
|
1536 |
How can I show the columns selector, so the user can drag and drop columns to the view
|
1535 |
The column's header is changed while the cursor hovers it. Is it possible to prevent that
|
1534 |
Is there any property I can save and restore automatically the current setting, column position, size, and so on (2)
public void init() { COM com_Items; anytype var_Items; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Item 1"); com_Items.AddItem("Item 2"); com_Items.AddItem("Item 3"); exg2antt1.Layout("Select=\"0\";SingleSort=\"C0:2\";Columns=1"); exg2antt1.EndUpdate(); } |
1533 |
Is there any property I can save and restore automatically the current setting, column position, size, and so on (1)
public void init() { COM com_Items; anytype var_Items; str var_s; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Item 1"); com_Items.AddItem("Item 2"); com_Items.AddItem("Item 3"); var_s = "gBjAAwAAuABmABpABsAB0ABlAByhoAPIAOEPAA9gYABoABQAgUEg0XN4AOcJicKkpujMbjsfkMFk0YhkQgUOjUEl8gjcGO0ok8KMULjEaGMcj08kQAO8oMkTNEtGwAGQ"; var_s = var_s + "Aqc7gUlhh1ABtAEsk9GpEfhElgVcsMupNlnlonlaAFcr0shUsp8QPEtnVJqJhmcIhUMh0QiU5sYAqMngUSuEMw07k8Qv0SgVRrNEuVflF2jF5x9JyNEm0TjQijemyE0j"; var_s = var_s + "E3t+YruauoAu4Az1qj9BzRn0UzksSnAA0xDjY6qnAw8OiUQ0dwzN0zWz2t7j8/xURAGNvWH6k8xlEhklhEI0O/6QAgI="; exg2antt1.Layout(var_s); exg2antt1.EndUpdate(); } |
1532 |
How do I arrange my columns on multiple levels
public void init() { COM com_Column,com_Column1,com_Column2,com_Columns; anytype var_Column,var_Column1,var_Column2,var_Columns; ; super(); exg2antt1.BeginUpdate(); exg2antt1.ColumnAutoResize(false); exg2antt1.DrawGridLines(-1/*exAllLines*/); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("C0")); com_Column = var_Column; com_Column.ExpandColumns("1,2"); com_Column.DisplayExpandButton(false); com_Columns.Add("C1"); com_Columns.Add("C2"); com_Columns.Add("C3"); var_Column1 = COM::createFromVariant(com_Columns.Add("C4")); com_Column1 = var_Column1; com_Column1.ExpandColumns("5,6"); com_Column1.DisplayExpandButton(false); com_Columns.Add("C5"); var_Column2 = COM::createFromVariant(com_Columns.Add("C6")); com_Column2 = var_Column2; com_Column2.ExpandColumns("6,7"); com_Column2.DisplayExpandButton(false); com_Columns.Add("C7"); exg2antt1.EndUpdate(); } |
1531 |
Does your control support expandable header or columns, so I can arrange it on multiple levels
public void init() { COM com_Column,com_Column1,com_Columns; anytype var_Column,var_Column1,var_Columns; ; super(); exg2antt1.BeginUpdate(); exg2antt1.DrawGridLines(-1/*exAllLines*/); exg2antt1.BackColorLevelHeader(WinApi::RGB2int(240,240,240)); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("Photo")); com_Column = var_Column; com_Column.AllowSizing(false); com_Column.Width(32); com_Columns.Add("Personal Info"); com_Columns.Add("Title"); com_Columns.Add("Name"); com_Columns.Add("First"); com_Columns.Add("Last"); com_Columns.Add("Address"); var_Column1 = COM::createFromObject(com_Columns.Item("Personal Info")); com_Column1 = var_Column1; com_Column1.ExpandColumns("2,3"); var_Column1 = com_Columns.Item("Name"); com_Column1 = var_Column1; com_Column1.ExpandColumns("4,5"); com_Column1.Expanded(false); exg2antt1.EndUpdate(); } |
1530 |
I need a Day/Hour Display where the Bars should be created/resized in a 15 Minute Scale in a normal View, but in a 5 Minute Scale when on an InsideZoom. How can I do that
public void init() { COM com_Chart,com_InsideZoomFormat,com_Items,com_Level; anytype var_Chart,var_InsideZoomFormat,var_Items,var_Level; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.AllowCreateBar(1/*exCreateBarAuto*/); com_Chart.UnitWidth(50); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2013",213))); com_Chart.LevelCount(2); var_Level = COM::createFromObject(com_Chart.Level(0)); com_Level = var_Level; com_Level.Label(COMVariant::createFromInt(4096)); var_Level = COM::createFromObject(com_Chart.Level(1)); com_Level = var_Level; com_Level.Label("<%h%>:<%nn%>"); var_Level = COM::createFromObject(com_Chart.Level(1)); com_Level = var_Level; com_Level.Unit(1048576/*exMinute*/); var_Level = COM::createFromObject(com_Chart.Level(1)); com_Level = var_Level; com_Level.Count(60); com_Chart.ResizeUnitScale(1048576/*exMinute*/); com_Chart.ResizeUnitCount(15); com_Chart.AllowInsideZoom(true); var_InsideZoomFormat = com_Chart.DefaultInsideZoomFormat(); com_InsideZoomFormat = var_InsideZoomFormat; com_InsideZoomFormat.InsideCount(5); com_InsideZoomFormat.InsideUnit(1048576/*exMinute*/); com_InsideZoomFormat.InsideLabel("<%nn%>"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Item"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1529 |
Can I change the format of date to be shown in the control
public void init() { COM com_Column,com_Column1,com_Column2,com_Columns,com_Items; anytype var_Column,var_Column1,var_Column2,var_Columns,var_Items; str var_s; ; super(); /*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(true,0); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Default"); var_Column = COM::createFromVariant(com_Columns.Add("Format.1")); com_Column = var_Column; com_Column.ComputedField("%0"); com_Column.FormatColumn("dateF(value) replace `/` with `-`"); var_Column1 = COM::createFromVariant(com_Columns.Add("Format.2")); com_Column1 = var_Column1; com_Column1.ComputedField("%0"); com_Column1.Def(17/*exCellValueFormat*/,COMVariant::createFromInt(1)); com_Column1.FormatColumn("`<b>`+ shortdate(value) + `</b> ` + timeF(value)"); var_Column2 = COM::createFromVariant(com_Columns.Add("Format.3")); com_Column2 = var_Column2; com_Column2.ComputedField("%0"); com_Column2.Def(17/*exCellValueFormat*/,COMVariant::createFromInt(1)); var_s = "` <b>`+ ( weekday(value) case ( 0 : `Su`; 1 : `Mo`; 2 : `Tu`; 3 : `We`; 4 : `Th`; 5 : `Fr`; 6 : `Sa`) ) + `</b> ` + ( dateF(valu"; var_s = var_s + "e) replace `/` with `-` )"; com_Column2.FormatColumn(var_s); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213))); com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/2/2001 10:00:00",213))); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(true,0); } */ |
1528 |
How can I display a text/caption on the chart part of the control
public void init() { COM com_Chart,com_Items,com_Note,com_Note1,com_Note2,com_Notes; anytype var_Chart,var_Items,var_Note,var_Note1,var_Note2,var_Notes; int h1; ; super(); exg2antt1.BeginUpdate(); exg2antt1.AntiAliasing(true); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("12/26/2000",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; h1 = com_Items.AddItem("Item 1"); com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"A"); com_Items.ItemBar(h1,"A",3/*exBarCaption*/,"text"); h1 = com_Items.AddItem("Item 2"); com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"A"); com_Items.ItemBar(h1,"A",3/*exBarCaption*/,"text outside associated with a bar"); com_Items.ItemBar(h1,"A",4/*exBarHAlignCaption*/,COMVariant::createFromInt(18)); h1 = com_Items.AddItem("Item 3"); com_Items.AddBar(h1,"",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213)),"A"); com_Items.ItemBar(h1,"A",3/*exBarCaption*/,"text with no bar associated"); h1 = com_Items.AddItem("Item 4"); com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"A"); h1 = com_Items.AddItem("Item 5"); h1 = com_Items.AddItem("Item 6"); h1 = com_Items.AddItem("Item 7"); h1 = com_Items.AddItem("Item 8"); com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"A"); h1 = com_Items.AddItem("Item 8"); com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"A"); var_Notes = exg2antt1.Chart().Notes(); com_Notes = var_Notes; var_Note = COM::createFromObject(com_Notes.Add("1S",exg2antt1.Items().ItemByIndex(3),"A","<font ;6>Movable Note Inside the Bar")); com_Note = var_Note; com_Note.PartCanMove(0/*exNoteStart*/,true); com_Notes.Add("AK",exg2antt1.Items().ItemByIndex(6),COMVariant::createFromDate(str2Date("1/6/2001",213)),"Note associated with a date: <%mm%>/<%dd%>/<%yyyy%>"); var_Note = com_Notes.Add("2S",exg2antt1.Items().ItemByIndex(7),"A","<font ;6>Fixed Note Left"); com_Note = var_Note; com_Note.ShowLink(0/*exNoteLinkHidden*/); com_Note.PartVOffset(1/*exNoteEnd*/,0); com_Note.PartHOffset(0/*exNoteStart*/,-32); com_Note.PartShadow(1/*exNoteEnd*/,false); com_Note.PartBackColor(1/*exNoteEnd*/,WinApi::RGB2int(255,255,0)); var_Note1 = com_Notes.Add("3S",exg2antt1.Items().ItemByIndex(8),"A","Start<br><%mmm%> <%d%> <%yyyy%>"); com_Note1 = var_Note1; com_Note1.PartCanMove(1/*exNoteEnd*/,true); com_Note1.PartHOffset(1/*exNoteEnd*/,-64); com_Note1.LinkStyle(2/*exLinkDot*/); com_Note1.LinkWidth(2); com_Note1.LinkColor(WinApi::RGB2int(0,0,255)); var_Note2 = com_Notes.Add("3F",exg2antt1.Items().ItemByIndex(8),"A","End<br><%mmm%> <%d%> <%yyyy%>"); com_Note2 = var_Note2; com_Note2.RelativePosition(COMVariant::createFromInt(1)); com_Note2.PartCanMove(1/*exNoteEnd*/,true); com_Note2.LinkStyle(2/*exLinkDot*/); com_Note2.LinkWidth(2); com_Note2.LinkColor(WinApi::RGB2int(0,0,255)); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1527 |
Which is the best way of change Bar parent
public void init() { COM com_Items; anytype var_Items; int h1,h2,h3; ; super(); exg2antt1.Debug(true); exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; h1 = com_Items.AddItem("Item 1"); com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"A"); h2 = com_Items.AddItem("Item 2"); com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"B"); h3 = com_Items.AddItem("Item 3"); com_Items.AddBar(h3,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"A"); com_Items.ItemBar(h3,"A",512/*exBarParent*/,h1); print( "The Bar A of H3 fails to change the parent to H1 as it has already a bar named A" ); com_Items.ItemBar(h3,"A",512/*exBarParent*/,h2); print( "The Bar A of H3 can be moved to H2, as it contains no bars with the key A" ); } |
1526 |
Is it possible to have a bar in bar
public void init() { COM com_Appearance,com_Chart,com_Items; anytype var_Appearance,var_Chart,var_Items; int h; str var_s; ; super(); exg2antt1.BeginUpdate(); var_Appearance = exg2antt1.VisualAppearance(); com_Appearance = var_Appearance; var_s = "gBFLBCJwBAEHhEJAEGg4BS4Dg6AADACAxRDAMgBQKAAzQFAYbBmGaGAAGIZhQgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDKAkRRdDSOYDmGQYDiCIoRShOMIjRL"; var_s = var_s + "UXxtDYEIRkSZYJAKCTtBwJAAURRULR6ACUYDnSRqGj6CQKRqEVBSLAdKyXJKvaZhGIRSDUJZkWZEIyjBY8EzXNqrIDoGKqYgOQ4XV5TFgxPR9IyhEAaLrleT5TjOII/R"; var_s = var_s + "pOEpYXSVHxFRAAAYhG4wABCXAAXjYF5Udhlfx3FCvMbqeCcSgOWoDZZRFa0PjVQQtNC4IitGzrMqrNaDSBlGigBauKw3TKlMzye7repOA5+aJGVz7VgfGz7EDjKg0GJc"; var_s = var_s + "gMex3lOZB5jgPYHHMaYxjeRBilWbZNG4B49l2do6hkfIhECUhjDoHROEYUYMgEbQMCEEx+lGIY0CQUQJHYGoUgQGBFkgB4FmkOINiMbBrAwQoxngSQMCCYJAG8DYCkMZ"; var_s = var_s + "JNDOAhAHCbYGGGOBqByB5hiMcJSDORhwjQKoEkKSIgHoEZEDgWJOECSwyGSGwjkWUJUh8HADiiXA6CSRgQliFwcgcSICB2EJkCKDIAB4CAxDgMoOiOIkfA4CoiDCDhAm"; var_s = var_s + "UEg4hEF4DHKCByA8JYpHIWwbAMIIuC6EIkCiOBwA2QpSHQbgOkoIZMD2GxmnmOhVhUJQiEwYAOAoQZQD6HhnjmaIfBuQ5BlQPQLiMEhuEKIRHmEKA7h+Q5ChQdQPmiah"; var_s = var_s + "Cg+JBnDAAhVCVPpoicHYEAobodicKZqHqGAO0YNA0ikQxKg6IYnAqAZcEGKxqnqOowiUZRSFwYwPAqIZkEOLhrjqaIqB4BAqn6QYwCwKwWkSMZECKLo6jKBA7DKTItWE"; var_s = var_s + "ZBlA8SpRmwRY1G0exYi0HoEEsbpdjcLZrgaYI4kQQo6laOYEFuIpojQCJiHAZgPksAZ0EePBvDuSp0j2bxrmadY+m8QpGnKP4EHwAwAjsCZxiQQQtAgAQrAiQowhKUB/"; var_s = var_s + "BIcJsEMD5EHETBPBYEhLFwJwZBKMY8G6bAoEaIQMjcIIEkzUZJAscgEEuShyjyKwskucpskQSwuDITJQEyTYzGuMIjBsBBCmiBATjObQDD+UB0E0DxGlCNINASO5PnSM"; var_s = var_s + "Q7E2Uxu3CbQRguUgYFCVR1H0WxYC2R5xDSDgVWiXA8AyNggksXwPDWQQ3FgL4IHERxsluNpdj6bAqAacQckAEQBQWxfDzF4BUYYqBKhEEQNMDgPQGhFGIDgVwKR3iiCi"; var_s = var_s + "IIIgig+BfA2MYOLtAqA4ESCYDIFgVDyGEKkPAQgFBDDwG4DYnQzg5GiDIOAZw3hCDoA8MQIA9PeGEHkRIyx6jiOMEoTAxRMhoCeIwUQKSbCKH6NgV43AECyFeEkEQdBT"; var_s = var_s + "AxC0FESQYhgB+DGPcTwYBXBZEeCIOoKg5j6EIJAbQNxJCjCAMAJwDRxghA4DEBYpk1hnHwH4DIxg3AaFGGgMQFwHhBHgGkewhhCDIHMDkDY0AlAGEAIAgIA="; com_Appearance.Add(1,COMVariant::createFromStr(var_s)); com_Appearance.Add(2,"c:\\exontrol\\images\\normal.ebn"); com_Appearance.Add(3,"CP:2 2 -4 2 4"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(0,256); com_Chart.LevelCount(2); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); exg2antt1.Columns().Add("Info"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Range Moveable Frame"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"F"); com_Items.ItemBar(h,"F",6/*exBarToolTip*/,"This bar can be moved inside the displayed range."); com_Items.ItemBar(h,"F",22/*exBarMinStart*/,COMVariant::createFromDate(str2Date("1/2/2001",213))); com_Items.ItemBar(h,"F",25/*exBarMaxEnd*/,COMVariant::createFromDate(str2Date("1/18/2001",213))); com_Items.ItemBar(h,"F",26/*exBarShowRange*/,COMVariant::createFromInt(32)); com_Items.ItemBar(h,"F",27/*exBarShowRangeTransparent*/,COMVariant::createFromInt(90)); h = com_Items.AddItem("Range Moveable Pattern"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),"F"); com_Items.ItemBar(h,"F",6/*exBarToolTip*/,"This bar can be moved inside the displayed range."); com_Items.ItemBar(h,"F",22/*exBarMinStart*/,COMVariant::createFromDate(str2Date("1/2/2001",213))); com_Items.ItemBar(h,"F",25/*exBarMaxEnd*/,COMVariant::createFromDate(str2Date("1/18/2001",213))); com_Items.ItemBar(h,"F",26/*exBarShowRange*/,COMVariant::createFromInt(1)); com_Items.ItemBar(h,"F",27/*exBarShowRangeTransparent*/,COMVariant::createFromInt(90)); h = com_Items.AddItem("Range Moveable EBN Transparent"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/12/2001",213)),"F"); com_Items.ItemBar(h,"F",6/*exBarToolTip*/,"This bar can be moved inside the displayed range."); com_Items.ItemBar(h,"F",22/*exBarMinStart*/,COMVariant::createFromDate(str2Date("1/2/2001",213))); com_Items.ItemBar(h,"F",25/*exBarMaxEnd*/,COMVariant::createFromDate(str2Date("1/18/2001",213))); com_Items.ItemBar(h,"F",26/*exBarShowRange*/,COMVariant::createFromInt(16777216)); com_Items.ItemBar(h,"F",27/*exBarShowRangeTransparent*/,COMVariant::createFromInt(50)); h = com_Items.AddItem("Range Moveable EBN Opaque 1"); com_Items.ItemHeight(h,24); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/10/2001",213)),COMVariant::createFromDate(str2Date("1/14/2001",213)),"F"); com_Items.ItemBar(h,"F",6/*exBarToolTip*/,"This bar can be moved inside the displayed range."); com_Items.ItemBar(h,"F",22/*exBarMinStart*/,COMVariant::createFromDate(str2Date("1/2/2001",213))); com_Items.ItemBar(h,"F",25/*exBarMaxEnd*/,COMVariant::createFromDate(str2Date("1/18/2001",213))); com_Items.ItemBar(h,"F",26/*exBarShowRange*/,COMVariant::createFromInt(33554432)); h = com_Items.AddItem("Range Moveable EBN Opaque 2"); com_Items.ItemHeight(h,24); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/12/2001",213)),COMVariant::createFromDate(str2Date("1/16/2001",213)),"F"); com_Items.ItemBar(h,"F",6/*exBarToolTip*/,"This bar can be moved inside the displayed range."); com_Items.ItemBar(h,"F",22/*exBarMinStart*/,COMVariant::createFromDate(str2Date("1/2/2001",213))); com_Items.ItemBar(h,"F",25/*exBarMaxEnd*/,COMVariant::createFromDate(str2Date("1/18/2001",213))); com_Items.ItemBar(h,"F",26/*exBarShowRange*/,COMVariant::createFromInt(50331648)); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(0,256); } */ |
1525 |
How can I show vertical lines using the SelectDate
public void init() { COM com_Appearance,com_Chart; anytype var_Appearance,var_Chart; str var_s; ; super(); exg2antt1.BeginUpdate(); var_Appearance = exg2antt1.VisualAppearance(); com_Appearance = var_Appearance; var_s = "gBFLBCJwBAEHhEJAEGg4BK8IQAAYAQGKIYBkAKBQAGaAoDDYMwzQwAAxDMKEEwsACEIrjKCRShyCYZRhGcTAFD8EhhECTY4lCQJAiKLoeQLHMBybJ8LwiGQaRJmeaYRD"; var_s = var_s + "UMI6QjPVARVIkaxhCSSaKpIAIBEB"; com_Appearance.Add(1,COMVariant::createFromStr(var_s)); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,0); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2008",213))); com_Chart.MarkTodayColor(com_Chart.BackColor()); com_Chart.LevelCount(2); com_Chart.AllowSelectDate(false); com_Chart.MarkSelectDateColor(0x1000000); com_Chart.SelectLevel(1); com_Chart.SelectDate(str2Date("1/15/2008",213),true); com_Chart.SelectDate(str2Date("1/18/2008",213),true); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,0); } */ |
1524 |
How can I show vertical lines using the SelectDate
public void init() { COM com_Chart; anytype var_Chart; ; super(); exg2antt1.BeginUpdate(); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,0); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2008",213))); com_Chart.MarkTodayColor(com_Chart.BackColor()); com_Chart.LevelCount(2); com_Chart.AllowSelectDate(false); com_Chart.MarkSelectDateColor(0x7fff0000); com_Chart.SelectLevel(1); com_Chart.SelectDate(str2Date("1/15/2008",213),true); com_Chart.SelectDate(str2Date("1/18/2008",213),true); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,0); } */ |
1523 |
How can I find if there is any filter applied to the control
// FilterChange event - Occurs when the filter was changed. void onEvent_FilterChange() { ; print( "If negative, the filter is present, else not" ); print( exg2antt1.Items().VisibleItemCount() ); } public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; int h; ; super(); exg2antt1.BeginUpdate(); exg2antt1.LinesAtRoot(-1/*exLinesAtRoot*/); exg2antt1.TreeColumnIndex(-1); exg2antt1.FilterInclude(4/*exMatchingItemsOnly*/); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Column")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(240/*exFilter*/); com_Column.Filter("C1"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("R1"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("R2"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); exg2antt1.ApplyFilter(); exg2antt1.EndUpdate(); } |
1522 |
How can I prevent showing the lines for the hierarchy while using the exMatchingItemsOnly option
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; int h; ; super(); exg2antt1.BeginUpdate(); exg2antt1.LinesAtRoot(-1/*exLinesAtRoot*/); exg2antt1.TreeColumnIndex(-1); exg2antt1.FilterInclude(4/*exMatchingItemsOnly*/); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Column")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(240/*exFilter*/); com_Column.Filter("C1|C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("R1"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("R2"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); exg2antt1.ApplyFilter(); exg2antt1.EndUpdate(); } |
1521 |
Is there any method to get only the matched items and not the items with his parent
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; int h; ; super(); exg2antt1.BeginUpdate(); exg2antt1.LinesAtRoot(-1/*exLinesAtRoot*/); exg2antt1.FilterInclude(4/*exMatchingItemsOnly*/); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("Column")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(240/*exFilter*/); com_Column.Filter("C1|C2"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("R1"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("R2"); com_Items.InsertItem(h,,"C1"); com_Items.InsertItem(h,,"C2"); exg2antt1.ApplyFilter(); exg2antt1.EndUpdate(); } |
1520 |
Is it possible to specify a working day exception that would override the non-working day pattern
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Pattern"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstWeekDay(1/*exMonday*/); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/24/2008",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,52); com_Chart.LevelCount(2); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddItem("Default"); com_Items.ItemNonworkingUnits(com_Items.AddItem("1/26/2008"),COMVariant::createFromBoolean(false),"weekday(value) case (default:0 ; 0:1; 6:(value != #1/26/2008#))"); com_Items.ItemNonworkingUnits(com_Items.AddItem("1/27/2008"),COMVariant::createFromBoolean(false),"weekday(value) case (default:0 ; 0:(value != #1/27/2008#); 6:1)"); com_Items.ItemNonworkingUnits(com_Items.AddItem("Sundays"),COMVariant::createFromBoolean(false),"weekday(value) = 0"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,52); } */ |
1519 |
How do I enable the scrollbar-extension, as thumb to be shown outside of the control's client area
public void init() { ; super(); exg2antt1.BeginUpdate(); exg2antt1.ScrollBars(15/*exDisableBoth*/); exg2antt1.Chart().ToolTip(""); exg2antt1.ScrollPartVisible(0/*exVScroll*/,65536/*exExtentThumbPart*/,true); exg2antt1.ScrollPartVisible(1/*exHScroll*/,65536/*exExtentThumbPart*/,true); exg2antt1.ScrollPartVisible(2/*exHChartScroll*/,65536/*exExtentThumbPart*/,true); exg2antt1.ScrollWidth(4); exg2antt1.Background(276/*exVSBack*/,WinApi::RGB2int(240,240,240)); exg2antt1.Background(260/*exVSThumb*/,WinApi::RGB2int(128,128,128)); exg2antt1.ScrollHeight(4); exg2antt1.Background(404/*exHSBack*/,exg2antt1.Background(276/*exVSBack*/)); exg2antt1.Background(388/*exHSThumb*/,exg2antt1.Background(260/*exVSThumb*/)); exg2antt1.Background(511/*exScrollSizeGrip*/,exg2antt1.Background(276/*exVSBack*/)); exg2antt1.EndUpdate(); } |
1518 |
Is it possible to associate an extra frame, border, EBN to the bar/task
public void init() { COM com_Appearance,com_Chart,com_Items; anytype var_Appearance,var_Chart,var_Items; int h; str var_s; ; super(); exg2antt1.BeginUpdate(); var_Appearance = exg2antt1.VisualAppearance(); com_Appearance = var_Appearance; var_s = "gBFLBCJwBAEHhEJAEGg4BNACg6AADACAxRDAMgBQKAAzQFAYbhsGCGAAGEZBQgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDEAkRRdDSOYDmGQYDiCIoRShOMaTVJ"; var_s = var_s + "8bQ2ASEaAmWK3boUAJFPrFc6ABJMZRRISXJABeKwRoGJYaUhRdDRNCIZBqEqua7iEZRQqCCZkWZPNTRVScByhF61IDpWjKLDKJJwXBMcxyBL0NRxFTAKawGoYbq0AJQV"; var_s = var_s + "TQcZPVhgAYYfSlMDuOB5Gq+G5SQjhWIgBjde4dRrHYrsGyQAp7JJoWLZMQyFIFIYNTS8LgpPI6LyyP5rABhWw5PiUVyfWTMdwzPatbyKHJicbpepWPxcNYtNzcNb3SAb"; var_s = var_s + "n+KgAmqP5yDiIAACIEhQDSGJOgcU4RhQYwgFUQwIESXxEGgbQJBQQhzHmUAAGILh0lWbpEGIIQQHuegaAaoRYBUBYBCgFAOAOQJgC4CgCCCQAUAQARACgRZFEa3ogCcC"; var_s = var_s + "ICDCDZ9AeH5wGgFoHmAUBIA6CJgiALgMAIABYiYER+BuMIyC4CZjAcYgygyYxIlYNoNBGMJGDoCximiXg+g+Yx0G0DgNiOIJGECEZkgQbA7A8A5JA4SITmOZBsEGFJDk"; var_s = var_s + "kLhQhXOItBYEZEGEHBCBARApGIYh1EAaIoAMQIEkENBNBGZpJg4YgCGcAAaGUAAFCmVhqBMZppGADQDACQAmAwAAFgoBh1BSJ4ZFwEEdHmcFmgWag2gEFhoFlINYkoHA"; var_s = var_s + "QAABhKGQX4jGkGQ8BiJ5BDqBAABqKl1GSJxkgAcoqAYAR3lQcIrkaOoSiiEZCBCBAgiqAaJHaLpHBqQoliaBZxHwWYwkUQRMFQExEmENBJBIRIBAgQwQkOYJ0D4DhDgC"; var_s = var_s + "YAzjWQpgjwLgKi2QIWl4CACADeofC4SpsHcHArlqRBqBkbpLAaQoxAUQRQE6PLoCaT40AOYJ6lWNdXlAL4/m2QIql4CRAAQBCAg="; com_Appearance.Add(1,COMVariant::createFromStr(var_s)); com_Appearance.Add(2,"CP:1 -4 -4 4 4"); exg2antt1.Columns().Add("Task"); exg2antt1.DrawGridLines(-1/*exAllLines*/); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.DrawGridLines(-1/*exAllLines*/); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Task"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K1"); h = com_Items.AddItem("Task/ EBN Frame"); com_Items.ItemHeight(h,32); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/15/2001",213)),"K2"); com_Items.ItemBar(h,"K2",51/*exBarFrameColor*/,COMVariant::createFromInt(33554432)); h = com_Items.AddItem("Task/ EBN Frame"); com_Items.ItemHeight(h,32); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/3/2001",213)),COMVariant::createFromDate(str2Date("1/15/2001",213)),"K2"); com_Items.ItemBar(h,"K2",51/*exBarFrameColor*/,COMVariant::createFromInt(50331392)); com_Items.AddBar(com_Items.AddItem("Task"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"K3"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1517 |
Is it possible to automatically display the working days duration in a column
public void init() { COM com_Chart,com_Column,com_Column1,com_Columns,com_Items; anytype var_Chart,var_Column,var_Column1,var_Columns,var_Items; int h; ; super(); exg2antt1.BeginUpdate(); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; com_Columns.Add("Tasks"); var_Column = COM::createFromVariant(com_Columns.Add("Duration")); com_Column = var_Column; com_Column.Def(18/*exCellValueToItemBarProperty*/,COMVariant::createFromInt(513)); com_Column.Def(19/*exCellValueToItemBarKey*/,"A"); var_Column1 = COM::createFromVariant(com_Columns.Add("Working")); com_Column1 = var_Column1; com_Column1.Def(18/*exCellValueToItemBarProperty*/,COMVariant::createFromInt(258)); com_Column1.Def(19/*exCellValueToItemBarKey*/,"A"); exg2antt1.Items().AllowCellValueToItemBar(true); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,256); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/3/2002",213))); com_Chart.LevelCount(2); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Task 1"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/4/2002",213)),COMVariant::createFromDate(str2Date("1/8/2002",213)),"A"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,256); } */ |
1516 |
How can I apply colors to columns section of the control based on properties of the displaying bars
// BarResize event - Occurs when a bar is moved or resized. void onEvent_BarResize(int _Item,COMVariant _Key) { ; exg2antt1.Refresh(); } public void init() { COM com_Chart,com_Column,com_Column1,com_ConditionalFormat,com_Items; anytype var_Chart,var_Column,var_Column1,var_ConditionalFormat,var_Items; ; super(); exg2antt1.BeginUpdate(); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("<fgcolor=FF0000>Tasks > 2 days")); com_Column = var_Column; com_Column.HTMLCaption(com_Column.Caption()); var_Column1 = COM::createFromVariant(exg2antt1.Columns().Add("PropertyBar")); com_Column1 = var_Column1; com_Column1.Visible(false); com_Column1.Def(19/*exCellValueToItemBarKey*/,""); com_Column1.Def(18/*exCellValueToItemBarProperty*/,COMVariant::createFromInt(513)); exg2antt1.Items().AllowCellValueToItemBar(true); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.LevelCount(2); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,96); com_Chart.NonworkingDays(0); var_ConditionalFormat = COM::createFromObject(exg2antt1.ConditionalFormats()).Add("%1 > 2"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat.Bold(true); exg2antt1.SelBackColor(exg2antt1.BackColor()); exg2antt1.SelForeColor(exg2antt1.ForeColor()); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),""); com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,96); } */ |
1515 |
Is it possible to update the colors on columns caption to highlight the critical path ( CPM )
// BarResize event - Occurs when a bar is moved or resized. void onEvent_BarResize(int _Item,COMVariant _Key) { ; exg2antt1.Items().SchedulePDM(_Item,_Key); exg2antt1.Refresh(); } public void init() { COM com_Chart,com_Column,com_ConditionalFormat,com_Items; anytype var_Chart,var_Column,var_ConditionalFormat,var_Items; int h1,h2,h3,h4; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Column = COM::createFromVariant(exg2antt1.Columns().Add("PropertyBar")); com_Column = var_Column; com_Column.Visible(false); com_Column.Def(19/*exCellValueToItemBarKey*/,""); com_Column.Def(18/*exCellValueToItemBarProperty*/,COMVariant::createFromInt(269)); exg2antt1.Items().AllowCellValueToItemBar(true); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,48); com_Chart.NonworkingDays(0); var_ConditionalFormat = COM::createFromObject(exg2antt1.ConditionalFormats()).Add("%1 != 0"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat.Bold(true); exg2antt1.SelBackColor(exg2antt1.BackColor()); exg2antt1.SelForeColor(exg2antt1.ForeColor()); var_Items = exg2antt1.Items(); com_Items = var_Items; h1 = com_Items.AddItem("Task 1"); com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); h2 = com_Items.AddItem("Task 2"); com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); com_Items.AddLink("L1",h1,"",h2,""); h3 = com_Items.AddItem("Task 3"); com_Items.AddBar(h3,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),""); com_Items.AddLink("L2",h2,"",h3,""); h4 = com_Items.AddItem("Task 3"); com_Items.AddBar(h4,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/3/2001",213)),""); com_Items.AddLink("L3",h2,"",h4,""); com_Items.DefSchedulePDM(5/*exPDMCriticalPathBarColor*/,COMVariant::createFromInt(255)); com_Items.DefSchedulePDM(7/*exPDMCriticalPathLinkColor*/,COMVariant::createFromInt(255)); com_Items.SchedulePDM(0,""); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,48); } */ |
1514 |
I am using the AddShapeCorner to define icon-bars. Is it possible to define with a different color
public void init() { COM com_Bar,com_Bar1,com_Bar2,com_Bars,com_Chart,com_Items; anytype var_Bar,var_Bar1,var_Bar2,var_Bars,var_Chart,var_Items; str var_s; ; super(); exg2antt1.BeginUpdate(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); var_Bars = com_Chart.Bars(); com_Bars = var_Bars; com_Bars.AddShapeCorner(COMVariant::createFromInt(12345),COMVariant::createFromInt(1)); var_Bar = com_Bars.Copy("Milestone","Original"); com_Bar = var_Bar; com_Bar.StartShape(12345/*0x3039 | exShapeIconVBar | exShapeIconRight*/); com_Bar.StartColor(-1); var_Bar1 = com_Bars.Copy("Milestone","Red"); com_Bar1 = var_Bar1; com_Bar1.StartShape(12345/*0x3039 | exShapeIconVBar | exShapeIconRight*/); com_Bar1.StartColor(WinApi::RGB2int(255,0,0)); var_Bar2 = com_Bars.Copy("Milestone","Green"); com_Bar2 = var_Bar2; com_Bar2.StartShape(12345/*0x3039 | exShapeIconVBar | exShapeIconRight*/); com_Bar2.StartColor(WinApi::RGB2int(0,255,0)); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Original"),"Original",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213))); com_Items.AddBar(com_Items.AddItem("Red"),"Red",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213))); com_Items.AddBar(com_Items.AddItem("Green"),"Green",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213))); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1513 |
My icon-bars shows different when displaying in the chart. Any ideas
public void init() { COM com_Bar,com_Bars,com_Items; anytype var_Bar,var_Bars,var_Items; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; exg2antt1.Images(COMVariant::createFromStr(var_s)); exg2antt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); var_Bars = exg2antt1.Chart().Bars(); com_Bars = var_Bars; com_Bars.AddShapeCorner(COMVariant::createFromInt(12345),COMVariant::createFromInt(1)); var_Bar = com_Bars.Item("Milestone"); com_Bar = var_Bar; com_Bar.StartShape(12345/*0x3039 | exShapeIconVBar | exShapeIconRight*/); com_Bar.StartColor(-1); exg2antt1.Columns().Add("Column"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Item 1"),"Milestone",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/2/2001",213))); } |
1512 |
The items are not colored in the chart panel
public void init() { COM com_Items; anytype var_Items; int h; ; super(); /*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(false,128); exg2antt1.Columns().Add("Default"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Item"); exg2antt1.Chart().ItemBackColor(h,WinApi::RGB2int(0,255,0)); exg2antt1.Items().ItemBackColor(h,WinApi::RGB2int(0,255,0)); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1511 |
I need to know how to determine the critical path (CPM) after the SchedulePDM procedure, so I can turn red the bars and links
// BarResize event - Occurs when a bar is moved or resized. void onEvent_BarResize(int _Item,COMVariant _Key) { ; exg2antt1.Items().SchedulePDM(_Item,_Key); } public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int h1,h2,h3,h4; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,48); com_Chart.NonworkingDays(0); var_Items = exg2antt1.Items(); com_Items = var_Items; h1 = com_Items.AddItem("Task 1"); com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); h2 = com_Items.AddItem("Task 2"); com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2"); com_Items.AddLink("L1",h1,"K1",h2,"K2"); h3 = com_Items.AddItem("Task 3"); com_Items.AddBar(h3,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K3"); com_Items.AddLink("L2",h2,"K2",h3,"K3"); h4 = com_Items.AddItem("Task 3"); com_Items.AddBar(h4,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/3/2001",213)),"K4"); com_Items.AddLink("L3",h2,"K2",h4,"K4"); com_Items.DefSchedulePDM(5/*exPDMCriticalPathBarColor*/,COMVariant::createFromInt(255)); com_Items.DefSchedulePDM(7/*exPDMCriticalPathLinkColor*/,COMVariant::createFromInt(255)); com_Items.SchedulePDM(0,"K1"); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,48); } */ |
1510 |
How can I display the Year in Thai, Buddhist, Korean format
public void init() { COM com_Chart,com_Level; anytype var_Chart,var_Level; ; super(); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstWeekDay(com_Chart.LocFirstWeekDay()); com_Chart.MonthNames(com_Chart.LocMonthNames()); com_Chart.WeekDays(com_Chart.LocWeekDays()); com_Chart.AMPM(com_Chart.LocAMPM()); com_Chart.LevelCount(2); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,0); com_Chart.UnitScale(4096/*exDay*/); var_Level = com_Chart.Level(0); com_Level = var_Level; com_Level.Label("<%mmmm%> <%d%>, <%loc_yyyy%> <r><%ww%>"); com_Level.Unit(256/*exWeek*/); com_Level.ToolTip(com_Level.Label()); com_Chart.ToolTip("<%ddd%> <%m%>/<%d%>/<%loc_yyyy%>"); exg2antt1.Description(17/*exFilterBarDateMonths*/,exg2antt1.Chart().MonthNames()); exg2antt1.DefaultEditorOption(30/*exDateMonths*/,COMVariant::createFromStr(exg2antt1.Chart().MonthNames())); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,0); } */ |
1509 |
How does localization work
public void init() { COM com_Chart; anytype var_Chart; ; super(); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstWeekDay(com_Chart.LocFirstWeekDay()); com_Chart.MonthNames(com_Chart.LocMonthNames()); com_Chart.WeekDays(com_Chart.LocWeekDays()); com_Chart.AMPM(com_Chart.LocAMPM()); com_Chart.LevelCount(2); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,0); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,0); } */ |
1508 |
Is it possible to show the bars with a different brightness (2)
public void init() { COM com_Appearance,com_Bar,com_Bars,com_Chart,com_Items; anytype var_Appearance,var_Bar,var_Bars,var_Chart,var_Items; int h; ; super(); var_Appearance = exg2antt1.VisualAppearance(); com_Appearance = var_Appearance; com_Appearance.Add(1,"C:/Program Files/Exontrol/ExG2antt/Sample/EBN/2task--.ebn"); com_Appearance.Add(2,"C:/Program Files/Exontrol/ExG2antt/Sample/EBN/2task-.ebn"); com_Appearance.Add(3,"C:/Program Files/Exontrol/ExG2antt/Sample/EBN/2task.ebn"); com_Appearance.Add(4,"C:/Program Files/Exontrol/ExG2antt/Sample/EBN/2task+.ebn"); com_Appearance.Add(5,"C:/Program Files/Exontrol/ExG2antt/Sample/EBN/2task++.ebn"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); com_Chart.NonworkingDays(0); var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars; var_Bar = COM::createFromObject(com_Bars).Copy("Task","--"); com_Bar = var_Bar; com_Bar.Color(0x1000000); var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars; var_Bar = COM::createFromObject(com_Bars).Copy("Task","-"); com_Bar = var_Bar; com_Bar.Color(0x2000000); var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar; com_Bar.Color(0x3000000); var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars; var_Bar = COM::createFromObject(com_Bars).Copy("Task","+"); com_Bar = var_Bar; com_Bar.Color(0x4000000); var_Bars = COM::createFromObject(com_Chart.Bars()); com_Bars = var_Bars; var_Bar = COM::createFromObject(com_Bars).Copy("Task","++"); com_Bar = var_Bar; com_Bar.Color(0x5000000); exg2antt1.Columns().Add("Brightness"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("0%"); com_Items.AddBar(h,"--",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"--"); com_Items.AddBar(h,"-",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"-"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),""); com_Items.AddBar(h,"+",COMVariant::createFromDate(str2Date("1/11/2001",213)),COMVariant::createFromDate(str2Date("1/13/2001",213)),"+"); com_Items.AddBar(h,"++",COMVariant::createFromDate(str2Date("1/14/2001",213)),COMVariant::createFromDate(str2Date("1/16/2001",213)),"++"); h = com_Items.AddItem("25%"); com_Items.AddBar(h,"--",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"--"); com_Items.AddBar(h,"-",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"-"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),""); com_Items.AddBar(h,"+",COMVariant::createFromDate(str2Date("1/11/2001",213)),COMVariant::createFromDate(str2Date("1/13/2001",213)),"+"); com_Items.AddBar(h,"++",COMVariant::createFromDate(str2Date("1/14/2001",213)),COMVariant::createFromDate(str2Date("1/16/2001",213)),"++"); com_Items.ItemBar(h,"<*>",19/*exBarTransparent*/,COMVariant::createFromInt(25)); h = com_Items.AddItem("50%"); com_Items.AddBar(h,"--",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"--"); com_Items.AddBar(h,"-",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"-"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),""); com_Items.AddBar(h,"+",COMVariant::createFromDate(str2Date("1/11/2001",213)),COMVariant::createFromDate(str2Date("1/13/2001",213)),"+"); com_Items.AddBar(h,"++",COMVariant::createFromDate(str2Date("1/14/2001",213)),COMVariant::createFromDate(str2Date("1/16/2001",213)),"++"); com_Items.ItemBar(h,"<*>",19/*exBarTransparent*/,COMVariant::createFromInt(50)); h = com_Items.AddItem("75%"); com_Items.AddBar(h,"--",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"--"); com_Items.AddBar(h,"-",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"-"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),""); com_Items.AddBar(h,"+",COMVariant::createFromDate(str2Date("1/11/2001",213)),COMVariant::createFromDate(str2Date("1/13/2001",213)),"+"); com_Items.AddBar(h,"++",COMVariant::createFromDate(str2Date("1/14/2001",213)),COMVariant::createFromDate(str2Date("1/16/2001",213)),"++"); com_Items.ItemBar(h,"<*>",19/*exBarTransparent*/,COMVariant::createFromInt(75)); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1507 |
Is it possible to show the bars with a different brightness (1)
public void init() { COM com_Bar,com_Chart,com_Items; anytype var_Bar,var_Chart,var_Items; int h; ; super(); exg2antt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar; com_Bar.Color(0x1000000); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,128); exg2antt1.Columns().Add("Brightness"); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("0%"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213))); h = com_Items.AddItem("25%"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213))); com_Items.ItemBar(h,"",19/*exBarTransparent*/,COMVariant::createFromInt(25)); h = com_Items.AddItem("50%"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213))); com_Items.ItemBar(h,"",19/*exBarTransparent*/,COMVariant::createFromInt(50)); h = com_Items.AddItem("75%"); com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213))); com_Items.ItemBar(h,"",19/*exBarTransparent*/,COMVariant::createFromInt(75)); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,128); } */ |
1506 |
So the behavior I am looking for is that a change can cascade through a bar's successors, but a change that would affect a bar's predecessors is not allowed. Is this possible to in ExG2antt
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int h,h1,h2,h3; ; super(); exg2antt1.BeginUpdate(); exg2antt1.MarkSearchColumn(false); exg2antt1.OnResizeControl(1/*exResizeChart*/); exg2antt1.Columns().Add("Tasks"); COM::createFromVariant(exg2antt1.Columns().Add("Start")).Visible(false); COM::createFromVariant(exg2antt1.Columns().Add("End")).Visible(false); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.LevelCount(2); com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("9/18/2006",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(0,64); com_Chart.ScrollRange(0/*exStartDate*/,com_Chart.FirstVisibleDate()); com_Chart.ScrollRange(1/*exEndDate*/,COMVariant::createFromDate(str2Date("12/31/2006",213))); com_Chart.MarkSelectDateColor(0x7fff0000); com_Chart.SelectLevel(1); com_Chart.SelectDate(str2Date("9/19/2006",213),true); com_Chart.AllowCreateBar(0/*exNoCreateBar*/); com_Chart.AllowLinkBars(0); var_Items = exg2antt1.Items(); com_Items = var_Items; h = com_Items.AddItem("Project"); com_Items.CellValue(h,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("9/21/2006",213))); com_Items.CellValue(h,COMVariant::createFromInt(2),COMVariant::createFromDate(str2Date("10/3/2006",213))); com_Items.AddBar(h,"Summary",com_Items.CellValue(h,COMVariant::createFromInt(1)),com_Items.CellValue(h,COMVariant::createFromInt(2)),"sum"); h1 = com_Items.InsertItem(h,,"Task 1"); com_Items.CellValue(h1,COMVariant::createFromInt(1),com_Items.CellValue(h,COMVariant::createFromInt(1))); com_Items.CellValue(h1,COMVariant::createFromInt(2),COMVariant::createFromDate(str2Date("9/24/2006",213))); com_Items.AddBar(h1,"Task",com_Items.CellValue(h1,COMVariant::createFromInt(1)),com_Items.CellValue(h1,COMVariant::createFromInt(2)),"K1"); com_Items.ItemBar(h1,"K1",22/*exBarMinStart*/,COMVariant::createFromDate(str2Date("9/20/2006",213))); h2 = com_Items.InsertItem(h,,"Task 2"); com_Items.CellValue(h2,COMVariant::createFromInt(1),com_Items.CellValue(h1,COMVariant::createFromInt(2))); com_Items.CellValue(h2,COMVariant::createFromInt(2),COMVariant::createFromDate(str2Date("9/28/2006",213))); com_Items.AddBar(h2,"Unknown",com_Items.CellValue(h2,COMVariant::createFromInt(1)),com_Items.CellValue(h2,COMVariant::createFromInt(2)),"K2"); com_Items.AddLink("L1",h1,"K1",h2,"K2"); h3 = com_Items.InsertItem(h,,"Task 3"); com_Items.CellValue(h3,COMVariant::createFromInt(1),com_Items.CellValue(h2,COMVariant::createFromInt(2))); com_Items.CellValue(h3,COMVariant::createFromInt(2),com_Items.CellValue(h,COMVariant::createFromInt(2))); com_Items.AddBar(h3,"Task",com_Items.CellValue(h3,COMVariant::createFromInt(1)),com_Items.CellValue(h3,COMVariant::createFromInt(2)),"K3"); com_Items.AddLink("L2",h2,"K2",h3,"K3"); com_Items.GroupBars(h1,"K1",false,h2,"K2",true,COMVariant::createFromInt(31),"0;4"); com_Items.GroupBars(h2,"K2",false,h3,"K3",true,COMVariant::createFromInt(31),"0;2"); com_Items.DefineSummaryBars(h,"sum",h1,"K1"); com_Items.DefineSummaryBars(h,"sum",h2,"K2"); com_Items.DefineSummaryBars(h,"sum",h3,"K3"); com_Items.ExpandItem(h,true); com_Items.ItemBold(h,true); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(0,64); } */ |
1505 |
How can I have a case-insensitive filter (exFilterDoCaseSensitive flag is not set)
public void init() { COM com_Column,com_Column1,com_Columns,com_Items; anytype var_Column,var_Column1,var_Columns,var_Items; ; super(); exg2antt1.BeginUpdate(); /*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(true,0); exg2antt1.MarkSearchColumn(false); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("Car")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(240/*exFilter*/); com_Column.Filter("MAZDA"); var_Column1 = COM::createFromVariant(com_Columns.Add("Equipment")); com_Column1 = var_Column1; com_Column1.DisplayFilterButton(true); com_Column1.DisplayFilterPattern(false); com_Column1.CustomFilter("Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"); com_Column1.FilterType(3/*exPattern*/); com_Column1.Filter("AIR BAG"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"Air Bag"); com_Items.CellValue(com_Items.AddItem("Toyota"),COMVariant::createFromInt(1),"Air Bag,Air condition"); com_Items.CellValue(com_Items.AddItem("Ford"),COMVariant::createFromInt(1),"Air condition"); com_Items.CellValue(com_Items.AddItem("Nissan"),COMVariant::createFromInt(1),"Air Bag,ABS,ESP"); com_Items.CellValue(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"Air Bag, ABS,ESP"); com_Items.CellValue(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"ABS,ESP"); exg2antt1.ApplyFilter(); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(true,0); } */ |
1504 |
How can I have a case-sensitive filter
public void init() { COM com_Column,com_Column1,com_Columns,com_Items; anytype var_Column,var_Column1,var_Columns,var_Items; ; super(); exg2antt1.BeginUpdate(); /*should be called during the form's activate method*/ exg2antt1.Chart().PaneWidth(true,0); exg2antt1.MarkSearchColumn(false); var_Columns = exg2antt1.Columns(); com_Columns = var_Columns; var_Column = COM::createFromVariant(com_Columns.Add("Car")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(496/*exFilterDoCaseSensitive | exFilter*/); com_Column.Filter("Mazda"); var_Column1 = COM::createFromVariant(com_Columns.Add("Equipment")); com_Column1 = var_Column1; com_Column1.DisplayFilterButton(true); com_Column1.DisplayFilterPattern(false); com_Column1.CustomFilter("Air Bag||*Air Bag*|||Air condition||*Air condition*|||ABS||*ABS*|||ESP||*ESP*"); com_Column1.FilterType(259/*exFilterDoCaseSensitive | exPattern*/); com_Column1.Filter("Air Bag"); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.CellValue(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"Air Bag"); com_Items.CellValue(com_Items.AddItem("Toyota"),COMVariant::createFromInt(1),"Air Bag,Air condition"); com_Items.CellValue(com_Items.AddItem("Ford"),COMVariant::createFromInt(1),"Air condition"); com_Items.CellValue(com_Items.AddItem("Nissan"),COMVariant::createFromInt(1),"Air Bag,ABS,ESP"); com_Items.CellValue(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"Air Bag, ABS,ESP"); com_Items.CellValue(com_Items.AddItem("Mazda"),COMVariant::createFromInt(1),"ABS,ESP"); exg2antt1.ApplyFilter(); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(true,0); } */ |
1503 |
Is it possible to add a custom label to the days with a specified background color
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int h1; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,48); var_Items = exg2antt1.Items(); com_Items = var_Items; h1 = com_Items.AddItem("Task 1"); com_Items.AddBar(h1,"",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/8/2001",213)),"K1","Leave Blank"); com_Items.ItemBar(h1,"K1",29/*exBarSelectable*/,COMVariant::createFromBoolean(false)); com_Items.ItemBar(h1,"K1",7/*exBarBackColor*/,COMVariant::createFromInt(255)); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,48); } */ |
1502 |
What is the event fired when I change "...Chart.PaneWidthLeft" (or "...Chart.PaneWidthRight") in the Gantt splitter window
// ChartEndChanging event - Occurs after the chart has been changed. void onEvent_ChartEndChanging(int _Operation) { ; print( "End Operation(exVSplitterChange(10)" ); print( _Operation ); print( "PaneWidth:" ); print( exg2antt1.Chart().PaneWidth(0) ); } // ChartStartChanging event - Occurs when the chart is about to be changed. void onEvent_ChartStartChanging(int _Operation) { ; print( "Start Operation(exVSplitterChange(10)" ); print( _Operation ); print( "PaneWidth:" ); print( exg2antt1.Chart().PaneWidth(0) ); } public void init() { ; super(); } |
1501 |
I want to ask if I can select more than one bar in the chart and move them together
public void init() { COM com_Chart,com_Items; anytype var_Chart,var_Items; int h; ; super(); exg2antt1.BeginUpdate(); exg2antt1.Columns().Add("Task"); var_Chart = exg2antt1.Chart(); com_Chart = var_Chart; com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("12/29/2000",213))); /*should be called during the form's activate method*/ com_Chart.PaneWidth(false,64); com_Chart.LevelCount(2); var_Items = exg2antt1.Items(); com_Items = var_Items; com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1"); com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K2"); com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),"K3"); h = com_Items.AddItem(""); com_Items.AddBar(h,"",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),"","<b>Right click</b> the chart, start dragging to select multiple bars<br>or click a bar while pressing the <b>CTRL</b> key"); com_Items.ItemHeight(h,36); com_Items.ItemBar(h,"",29/*exBarSelectable*/,COMVariant::createFromBoolean(false)); exg2antt1.EndUpdate(); } /* public void activate(boolean _active) { ; super(_active); exg2antt1.Chart().PaneWidth(false,64); } */ |